public interface ZebraGraphicsI
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears user set parameters.
|
void |
close()
Releases all the resources.
|
byte[] |
convertImageToRGB(byte[] imageData)
Converts the image to RGB format.
|
ZebraCardImageI |
createImage()
Generates the final bitmap image.
|
void |
drawImage(byte[] imageData,
int x,
int y,
int width,
int height,
RotationType rotation)
Draws the image into the specified rectangle
|
ExtractedImages |
extractBlackImageData(byte[] imageData,
int redThreshold,
int greenThreshold,
int blueThreshold)
Separates the monochrome and color data from the specified image data using the specified threshold values.
|
void |
initialize(int maxWidth,
int maxHeight,
OrientationType orientation,
PrintType printType,
Integer fillColor)
Initializes the drawing surface
if the specified
maxWidth or maxHeight is 0 then the maximum values for the specified printer model will be used
|
byte[] |
rotateImage(byte[] imageData,
int width,
int height,
RotationType type)
Rotates the image and then resizes the image.
|
byte[] |
rotateImage(byte[] imageData,
RotationType type)
Rotates the image.
|
void |
setPrinterModel(PrinterModel model)
Sets the printer model.
|
void initialize(int maxWidth,
int maxHeight,
OrientationType orientation,
PrintType printType,
Integer fillColor)
maxWidth or maxHeight is 0 then the maximum values for the specified printer model will be usedmaxWidth - the maximum width of the image (limited based on printer model).maxHeight - the maximum height of the image (limited based on printer model).orientation - the orientation of the image.printType - the type of print to be performed.fillColor - the RGB background fill color.void drawImage(byte[] imageData,
int x,
int y,
int width,
int height,
RotationType rotation)
throws IOException,
IllegalArgumentException
imageData - the bitmap image datax - the x coordinate.y - the y coordinate.width - the width of the rectangle.
height - the height of the rectangle.
rotation - the rotation of the image.IOException - if an error occurs during reading/writing.IllegalArgumentException - if an argument passed in is not valid.ZebraCardImageI createImage() throws IOException
IOException - if an error occurs during reading/writing.void clear()
void close()
byte[] rotateImage(byte[] imageData,
RotationType type)
throws IOException
imageData - the source image data.type - the rotation type.IOException - if an error occurs during reading/writing.byte[] rotateImage(byte[] imageData,
int width,
int height,
RotationType type)
throws IOException
imageData - the source image data.width - the rotated image width.height - the rotated image height.type - the rotation type.IOException - if an error occurs during reading/writing.byte[] convertImageToRGB(byte[] imageData)
throws IOException
imageData - the source image data.IOException - if an error occurs during reading/writing.void setPrinterModel(PrinterModel model)
model - the printer model type.ExtractedImages extractBlackImageData(byte[] imageData, int redThreshold, int greenThreshold, int blueThreshold) throws IllegalArgumentException, IOException
imageData - the raw bitmap data.redThreshold - the red pixel threshold value.
greenThreshold - the green pixel threshold value.
blueThreshold - the blue pixel threshold value.
IllegalArgumentException - if the redThreshold, greenThreshold, or blueThreshold level is outside of the valid
range.IOException - if an error occurs while reading the image data.
© 2016 ZIH Corp. All Rights Reserved.