|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lizardtech.djvu.GPixel
com.lizardtech.djvu.GPixelReference
public final class GPixelReference
DOCUMENT ME!
Field Summary |
---|
Fields inherited from class com.lizardtech.djvu.GPixel |
---|
BLACK, BLUE, GREEN, NUMELEMS, RED, WHITE |
Constructor Summary | |
---|---|
GPixelReference(GMap parent,
int offset)
Creates a createGPixelReference object. |
|
GPixelReference(GMap parent,
int row,
int column)
Creates a createGPixelReference object. |
Method Summary | |
---|---|
byte |
blueByte()
Query the blue pixel value. |
GPixelReference |
duplicate()
Create a duplicate of this GPixelReference. |
void |
fillRGBPixels(int x,
int y,
int w,
int h,
int[] pixels,
int off,
int scansize)
Fills an array of pixels from the specified values. |
byte |
greenByte()
Query the green pixel value. |
void |
incOffset()
Step to the next pixel. |
void |
incOffset(int offset)
Skip past the specified number of pixels. |
byte |
redByte()
Query the red pixel value. |
void |
setBGR(int blue,
int green,
int red)
Set the blue, green, and red values of the current pixel. |
void |
setBlue(byte blue)
Set the blue pixel value. |
void |
setGreen(byte green)
Set the green pixel value. |
void |
setOffset(int offset)
Set the map image pixel we are refering to. |
void |
setOffset(int row,
int column)
Set the map image pixel we are refering to. |
void |
setPixels(GPixelReference ref,
int length)
Copy the pixel values. |
void |
setRed(byte red)
Set the red pixel value. |
void |
YCC_to_RGB(int count)
Convert the following number of pixels from YCC to RGB. |
Methods inherited from class com.lizardtech.djvu.GPixel |
---|
clone, equals, getBlue, getGreen, getRed, hashCode, set, setBlue, setGray, setGray, setGreen, setRed |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GPixelReference(GMap parent, int offset)
parent
- the image map to refere tooffset
- the initial pixel position to refere topublic GPixelReference(GMap parent, int row, int column)
parent
- DOCUMENT ME!row
- DOCUMENT ME!column
- DOCUMENT ME!Method Detail |
---|
public final void setPixels(GPixelReference ref, int length)
ref
- pixel to copypublic void setOffset(int offset)
offset
- pixel positionpublic void setOffset(int row, int column)
row
- vertical positioncolumn
- horizontal positionpublic void YCC_to_RGB(int count)
count
- The number of pixels to convert.public void setBGR(int blue, int green, int red)
setBGR
in class GPixel
blue
- pixel valuegreen
- pixel valuered
- pixel valuepublic void setBlue(byte blue)
setBlue
in class GPixel
blue
- pixel valuepublic byte blueByte()
blueByte
in class GPixel
public GPixelReference duplicate()
public void fillRGBPixels(int x, int y, int w, int h, int[] pixels, int off, int scansize)
x
- the x-coordinate of the upper-left corner of the region of
pixelsy
- the y-coordinate of the upper-left corner of the region of
pixelsw
- the width of the region of pixelsh
- the height of the region of pixelspixels
- the array of pixelsoff
- the offset into the pixel arrayscansize
- the distance from one row of pixels to the next in the
arraypublic void setGreen(byte green)
setGreen
in class GPixel
green
- pixel valuepublic byte greenByte()
greenByte
in class GPixel
public void incOffset()
public void incOffset(int offset)
offset
- number of pixels to step past.public void setRed(byte red)
setRed
in class GPixel
red
- pixel valuepublic byte redByte()
redByte
in class GPixel
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |