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.
|
byte[] |
cropImage(byte[] imageData,
int x,
int y,
int width,
int height)
Crops an image to supplied dimensions and returns the cropped image data.
|
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.
|
byte[] |
extractHalfPanelImageData(byte[] imageData)
Attempts to identify and extract the color and non-color half panel regions of the source image.
|
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
|
void |
monochromeConversionType(MonochromeConversion type)
Sets the monochrome conversion type to be used during
createImage(). |
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 |
setBrightnessLevel(int level)
Sets the brightness correction level to be applied during
createImage() |
void |
setColorScale(int red,
int green,
int blue)
Sets the color scale correction values for red, green, and blue pixel values during
createImage() |
void |
setContrastLevel(int level)
Sets the contrast correction level to be applied during
createImage() |
void |
setGammaLevel(int level)
Sets the gamma correction level to be applied during
createImage() |
void |
setPrinterModel(PrinterModel model)
Sets the printer model.
|
void |
setSaturationLevel(int level)
Sets the saturation correction level to be applied during
createImage() |
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 java.io.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.java.io.IOException - if an error occurs during reading/writing.IllegalArgumentException - if an argument passed in is not valid.byte[] cropImage(byte[] imageData,
int x,
int y,
int width,
int height)
throws java.io.IOException
imageData - byte[] containing the raw bitmap data.x - the x-offset of new image.y - the y-offset of new image.width - the width of the cropped image.height - the height of the cropped image.java.io.IOException - if an error occurs reading the image data.void monochromeConversionType(MonochromeConversion type)
createImage().
type - the type of monochrome conversion to perform.void setBrightnessLevel(int level)
createImage()level - the brightness level.
void setContrastLevel(int level)
createImage()level - the contrast level.
void setGammaLevel(int level)
createImage()level - the gamma level.
void setSaturationLevel(int level)
createImage()level - the saturation correction level.
void setColorScale(int red,
int green,
int blue)
createImage()red - the red pixel correction value.green - the green pixel correction value.blue - the blue pixel correction value.
ZebraCardImageI createImage() throws java.io.IOException
java.io.IOException - if an error occurs during reading/writing.void clear()
void close()
byte[] rotateImage(byte[] imageData,
RotationType type)
throws java.io.IOException
imageData - the source image data.type - the rotation type.java.io.IOException - if an error occurs during reading/writing.byte[] rotateImage(byte[] imageData,
int width,
int height,
RotationType type)
throws java.io.IOException
imageData - the source image data.width - the rotated image width.height - the rotated image height.type - the rotation type.java.io.IOException - if an error occurs during reading/writing.byte[] convertImageToRGB(byte[] imageData)
throws java.io.IOException
imageData - the source image data.java.io.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, java.io.IOException
imageData - the 24bpp bitmap color image 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.java.io.IOException - if an error occurs while reading the image data.byte[] extractHalfPanelImageData(byte[] imageData)
throws IllegalArgumentException,
java.io.IOException
imageData - the 24bpp bitmap color image data.IllegalArgumentException - If imageData is invalid or the printer model is not supported.java.io.IOException - if an error occurs while reading the image data.
© 2016 ZIH Corp. All Rights Reserved.