ProfileStoreImage Method (String, ZebraImageI, Int32, Int32)
|
Stores the specified image to the connected printer as a monochrome image.
Namespace:
Zebra.Sdk.Device
Assembly:
SdkApi.Core (in SdkApi.Core.dll) Version: 2.15.2634
Syntax public void StoreImage(
string deviceDriveAndFileName,
ZebraImageI image,
int width,
int height
)
Public Sub StoreImage (
deviceDriveAndFileName As String,
image As ZebraImageI,
width As Integer,
height As Integer
)
public:
virtual void StoreImage(
String^ deviceDriveAndFileName,
ZebraImageI^ image,
int width,
int height
) sealed
Parameters
- deviceDriveAndFileName
- Type: SystemString
Path on the printer where the image will be stored. - image
- Type: Zebra.Sdk.GraphicsZebraImageI
The image to be stored on the printer. - width
- Type: SystemInt32
Desired width of the printed image, in dots. Passing -1 will preserve original width. - height
- Type: SystemInt32
Desired height of the printed image, in dots. Passing -1 will preserve original height.
Implements
GraphicsUtilStoreImage(String, ZebraImageI, Int32, Int32)Exceptions Remarks
The image will be stored on the printer at
printerDriveAndFileName with the extension GRF.
If a drive letter is not supplied, E will be used as the default (e.g. FILE becomes E:FILE.GRF). If an extension is supplied,
it is ignored if it is not either BMP or PNG. If the extension is ignored, GRF will be used.
If the image resolution is large (e.g. 1024x768) this method may take a long time to execute or throw an
OutOfMemoryException.
See Also