public interface ImageBuffer extends ImageSurface
Graphics
Modifier and Type | Method and Description |
---|---|
Graphic |
createGraphic()
Create the image graphic context.
|
void |
dispose()
Dispose the associated resources if needed.
|
int |
getRgb(int x,
int y)
Returns a pixel at the specified coordinate.
|
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.
|
void |
prepare()
Prepare loaded surface to be displayed.
|
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.
|
getSurface, getTransparency
void prepare()
LionEngineException
- If error on preparing.Graphic createGraphic()
void dispose()
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 horizontal coordinatey
- the vertical 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
Copyright © 2016 Byron 3D Games Studio. All rights reserved.