public interface ImageBuffer
Modifier and Type | Method and Description |
---|---|
Graphic |
createGraphic()
Create the image graphic context.
|
int |
getHeight()
Get the surface height.
|
int |
getRgb(int x,
int y)
Returns an array of integer pixels representing the image data.
|
int[] |
getRgb(int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize)
Returns an array of integer pixels representing the image data.
|
Transparency |
getTransparency()
Get the image transparency type.
|
int |
getWidth()
Get the surface width.
|
void |
setRgb(int x,
int y,
int rgb)
Sets a pixel color.
|
void |
setRgb(int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize)
Sets an array of integer pixels, into a portion of the image data.
|
Graphic createGraphic()
void setRgb(int x, int y, int rgb)
x
- the X coordinate of the pixel to sety
- the Y coordinate of the pixel to setrgb
- the RGB valuevoid setRgb(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)
startX
- the starting X coordinatestartY
- the starting Y coordinatew
- width of the regionh
- height of the regionrgbArray
- the rgb pixelsoffset
- offset into the rgbArray
scansize
- scanline stride for the rgbArray
int getRgb(int x, int y)
x
- the starting X coordinatey
- the starting Y coordinateint[] getRgb(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)
startX
- the starting X coordinatestartY
- the starting Y coordinatew
- width of regionh
- height of regionrgbArray
- if not null
, the rgb pixels are written hereoffset
- offset into the rgbArray
scansize
- scanline stride for the rgbArray
int getWidth()
int getHeight()
Transparency getTransparency()
Copyright © 2014 Byron 3D Games Studio. All rights reserved.