|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectO2Plib.image.DrawPix
public class DrawPix
| Field Summary | |
|---|---|
private static int[] |
char4x6table
Small 4x6 character set [0:127,1:2] |
private static int[] |
char5x7table
Large 5x7 character set was designed by Jonathan Merril. |
static int |
FONT4X6
Font size codes for drawtext...() |
static int |
FONT5X7
Font size codes for drawtext...() |
static int |
nth
picture file iteration # |
| Constructor Summary | |
|---|---|
DrawPix()
DrawPix() - Constructor |
|
| Method Summary | |
|---|---|
static void |
drawBoundariesForSpots(DbSample dbSample,
char[] pix,
int pixWidth,
int color)
drawBoundariesForSpots() - If generating the segmented spot image in pix5, and the -DRAWSPOTS:B<'O'riginal or 'Z'image> was set, draw a white boundary around each spot in the 'O'riginal or segmented 'Z' image (-DRAWSPOTS:BO default). |
static void |
drawBoundariesForSpots(DbSample dbSample,
int[] pix,
int pixWidth,
int color)
drawBoundariesForSpots() - If generating the segmented spot image in pix5, and the -DRAWSPOTS:B<'O'riginal or 'Z'image> was set, draw a white boundary around each spot in the 'O'riginal or segmented 'Z' image (-DRAWSPOTS:BO default). |
static void |
drawDotsInSpots(DbSample dbSample,
char[] pix,
int color,
int pixWidth,
boolean drawPlusFlag,
boolean drawMinEnclRectFlag,
boolean drawSxSyEllipseFlag)
drawDotsInSpots() - draw symbol indicating the spots in the spot list in the pix. |
static void |
drawDotsInSpots(DbSample dbSample,
int[] pix,
int color,
int pixWidth,
boolean drawPlusFlag,
boolean drawMinEnclRectFlag,
boolean drawSxSyEllipseFlag)
drawDotsInSpots() - draw symbol indicating the spots in the spot list in the pix. |
static void |
drawTextInPix(char[] pix,
int x0,
int y0,
java.lang.String str,
int gray,
int font,
int zoom,
int pixWidth,
int pixHeight,
boolean clrBkgrdFlag)
drawTextInPix() - Display the string 'str' starting at (x0,y0) in specified 'gray' value in either of two charcter sizes 4x6 (upper case only: font=0); or 5x7 (upper/lower case: font=1) and a 'zoom' factor of 1X (default) to 64X. |
static void |
drawTextInPix(int[] pix,
int x0,
int y0,
java.lang.String str,
int gray,
int font,
int zoom,
int pixWidth,
int pixHeight,
boolean clrBkgrdFlag)
drawTextInPix() - Display the string 'str' starting at (x0,y0) in specified 'gray' value in either of two charcter sizes 4x6 (upper case only: font=0); or 5x7 (upper/lower case: font=1) and a 'zoom' factor of 1X (default) to 64X. |
static int |
get2D(char[] pix,
int pixWidth,
int x,
int y)
get2D() - get the pixel at pix(x,y) computed at (y+pixelWidth+x) |
static int |
get2D(int[] pix,
int pixWidth,
int x,
int y)
get2D() - get the pixel at pix(x,y) computed at (y+pixelWidth+x) |
static int |
set2D(char[] pix,
int pixWidth,
int x,
int y,
int g)
set2D() - save the pixel value g at pix(x,y) computed at (y+pixelWidth+x) |
static int |
set2D(int[] pix,
int pixWidth,
int x,
int y,
int g)
set2D() - save the pixel value g at pix(x,y) computed at (y+pixelWidth+x) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int nth
public static final int FONT4X6
public static final int FONT5X7
private static final int[] char5x7table
private static final int[] char4x6table
| Constructor Detail |
|---|
public DrawPix()
| Method Detail |
|---|
public static void drawTextInPix(int[] pix,
int x0,
int y0,
java.lang.String str,
int gray,
int font,
int zoom,
int pixWidth,
int pixHeight,
boolean clrBkgrdFlag)
NOTE: Only 7-bits of the 8-bit ASCII character are used. NOTE: These fonts are hardwired!
pix - is the picture buffer to draw text inx0 - is the upper left hand corner of box to draw text iny0 - is the upper left hand corner of box to draw text instr - is the text string to draw in pixgray - is the color of textfont - is the font code: FONT4X6, FONT5X7zoom - is the zoom factor 1X (default) to 64X maxpixWidth - is image widthpixHeight - is image heightclrBkgrdFlag - - if set, clear background w/complent gray
public static void drawTextInPix(char[] pix,
int x0,
int y0,
java.lang.String str,
int gray,
int font,
int zoom,
int pixWidth,
int pixHeight,
boolean clrBkgrdFlag)
NOTE: Only 7-bits of the 8-bit ASCII character are used. NOTE: These fonts are hardwired!
pix - is the picture buffer to draw text inx0 - is the upper left hand corner of box to draw text iny0 - is the upper left hand corner of box to draw text instr - is the text string to draw in pixgray - is the color of textfont - is the font code: FONT4X6, FONT5X7zoom - is the zoom factor 1X (default) to 64X maxpixWidth - is image widthpixHeight - is image heightclrBkgrdFlag - - if set, clear background w/complent gray
public static void drawDotsInSpots(DbSample dbSample,
int[] pix,
int color,
int pixWidth,
boolean drawPlusFlag,
boolean drawMinEnclRectFlag,
boolean drawSxSyEllipseFlag)
dbSample - to get spot list to draw.pix - is the picture buffer to draw text inpixWidth - is image widthcolor - is the color to draw the textdrawPlusSwitch - to draw "+" else draw dots at each spot.drawMinEnclRectSwitch - to draw minimum enclosing rectangle at spots.drawSxSyEllipseFlag - to draw ellipse at spots.
public static void drawDotsInSpots(DbSample dbSample,
char[] pix,
int color,
int pixWidth,
boolean drawPlusFlag,
boolean drawMinEnclRectFlag,
boolean drawSxSyEllipseFlag)
dbSample - to get spot list to draw.pix - is the picture buffer to draw text inpixWidth - is image widthcolor - is the color to draw the textdrawPlusSwitch - to draw "+" else draw dots at each spot.drawMinEnclRectSwitch - to draw minimum enclosing rectangle at spots.drawSxSyEllipseFlag - to draw ellipse at spots.
public static void drawBoundariesForSpots(DbSample dbSample,
char[] pix,
int pixWidth,
int color)
dbSample - to get spot list to draw.pix - is the picture buffer to draw text inpixWidth - is image widthcolor - is the color to draw the text
public static void drawBoundariesForSpots(DbSample dbSample,
int[] pix,
int pixWidth,
int color)
dbSample - to get spot list to draw.pix - is the picture buffer to draw text inpixWidth - is image widthcolor - is the color to draw the text
public static final int get2D(int[] pix,
int pixWidth,
int x,
int y)
pix - is the image bufferpixWidth - is image widthx - of pixely - of pixel
public static final int get2D(char[] pix,
int pixWidth,
int x,
int y)
pix - is the image bufferpixWidth - is image widthx - of pixely - of pixel
public static final int set2D(int[] pix,
int pixWidth,
int x,
int y,
int g)
pix - is the image bufferpixWidth - is image widthx - of pixely - of pixelg - is new int value to save
public static final int set2D(char[] pix,
int pixWidth,
int x,
int y,
int g)
pix - is the image bufferpixWidth - is image widthx - of pixely - of pixelg - is new int value to save
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||