Click or drag to resize

ProfileStoreImage(String, String, Int32, Int32) Method

Stores the specified image to the connected printer as a monochrome image.

Namespace: Zebra.Sdk.Device
Assembly: SdkApi.Core (in SdkApi.Core.dll) Version: 3.0.3271
Syntax
public void StoreImage(
	string deviceDriveAndFileName,
	string imageFullPath,
	int width,
	int height
)

Parameters

deviceDriveAndFileName  String
Path on the printer where the image will be stored.
imageFullPath  String
The image file to be stored on the printer.
width  Int32
Desired width of the printed image, in dots. Passing -1 will preserve original width.
height  Int32
Desired height of the printed image, in dots. Passing -1 will preserve original height.

Implements

GraphicsUtilStoreImage(String, String, Int32, Int32)
Exceptions
ExceptionCondition
ConnectionExceptionIf there is an issue communicating with the printer (e.g. the connection is not open).
ZebraIllegalArgumentExceptionIf printerDriveAndFileName has an incorrect format.
IOExceptionIf the file could not be found, opened, or is an unsupported graphic.
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