public final class ImageBufferSwt extends Object implements com.b3dgs.lionengine.graphic.ImageBuffer
Constructor and Description |
---|
ImageBufferSwt(org.eclipse.swt.graphics.Device device,
org.eclipse.swt.graphics.ImageData data)
Internal constructor.
|
ImageBufferSwt(org.eclipse.swt.graphics.Image image)
Internal constructor.
|
Modifier and Type | Method and Description |
---|---|
com.b3dgs.lionengine.graphic.Graphic |
createGraphic() |
void |
dispose() |
int |
getHeight() |
int |
getRgb(int x,
int y) |
int[] |
getRgb(int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize) |
org.eclipse.swt.graphics.Image |
getSurface() |
com.b3dgs.lionengine.graphic.Transparency |
getTransparency() |
static com.b3dgs.lionengine.graphic.Transparency |
getTransparency(int transparency)
Get the transparency equivalence.
|
com.b3dgs.lionengine.graphic.ColorRgba |
getTransparentColor() |
int |
getWidth() |
void |
prepare() |
void |
setRgb(int x,
int y,
int rgb) |
void |
setRgb(int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize) |
public ImageBufferSwt(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.ImageData data)
device
- The device reference.data
- The image data.public ImageBufferSwt(org.eclipse.swt.graphics.Image image)
image
- The image.public static com.b3dgs.lionengine.graphic.Transparency getTransparency(int transparency)
transparency
- The transparency.public void prepare()
prepare
in interface com.b3dgs.lionengine.graphic.ImageBuffer
public com.b3dgs.lionengine.graphic.Graphic createGraphic()
createGraphic
in interface com.b3dgs.lionengine.graphic.ImageBuffer
public void dispose()
dispose
in interface com.b3dgs.lionengine.graphic.ImageBuffer
public void setRgb(int x, int y, int rgb)
setRgb
in interface com.b3dgs.lionengine.graphic.ImageBuffer
public void setRgb(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)
setRgb
in interface com.b3dgs.lionengine.graphic.ImageBuffer
public int getRgb(int x, int y)
getRgb
in interface com.b3dgs.lionengine.graphic.ImageBuffer
public int[] getRgb(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)
getRgb
in interface com.b3dgs.lionengine.graphic.ImageBuffer
public int getWidth()
getWidth
in interface com.b3dgs.lionengine.Surface
public int getHeight()
getHeight
in interface com.b3dgs.lionengine.Surface
public org.eclipse.swt.graphics.Image getSurface()
getSurface
in interface com.b3dgs.lionengine.graphic.ImageSurface
public com.b3dgs.lionengine.graphic.Transparency getTransparency()
getTransparency
in interface com.b3dgs.lionengine.graphic.ImageSurface
public com.b3dgs.lionengine.graphic.ColorRgba getTransparentColor()
getTransparentColor
in interface com.b3dgs.lionengine.graphic.ImageSurface
Copyright © 2017 Byron 3D Games Studio. All rights reserved.