ProfilePrintImageFromPath(String, Int32, Int32, Int32, Int32, Boolean) Method
|
New, optimized method to print an image from the connecting device file system to the connected device as a monochrome image.
Namespace: Zebra.Sdk.DeviceAssembly: SdkApi.Core (in SdkApi.Core.dll) Version: 4.0.3435
Syntaxpublic void PrintImageFromPath(
string imageFilePath,
int x,
int y,
int width,
int height,
bool insideFormat
)
Public Sub PrintImageFromPath (
imageFilePath As String,
x As Integer,
y As Integer,
width As Integer,
height As Integer,
insideFormat As Boolean
)
public:
virtual void PrintImageFromPath(
String^ imageFilePath,
int x,
int y,
int width,
int height,
bool insideFormat
) sealed
Parameters
- imageFilePath String
[Missing <param name="imageFilePath"/> documentation for "M:Zebra.Sdk.Device.Profile.PrintImageFromPath(System.String,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean)"]
- x Int32
- Horizontal starting position in dots.
- y Int32
- Vertical starting position in dots.
- width Int32
- Desired width of the printed image. Passing a value less than 1 will preserve original width.
- height Int32
- Desired height of the printed image. Passing a value less than 1 will preserve original height.
- insideFormat Boolean
- Boolean value indicating whether this image should be printed by itself (false), or is part
of a format being written to the connection (true).
Implements
GraphicsUtilPrintImageFromPath(String, Int32, Int32, Int32, Int32, Boolean)
Exceptions| Exception | Condition |
|---|
| ConnectionException | If an I/O error occurs. |
| IOException | When the file could not be found, opened, or is an unsupported graphic. |
Remarks
If the image resolution is large (e.g. 1024x768) this method may take a long time to execute or
throw an OutOfMemoryException.
See Also