Package | Description |
---|---|
com.b3dgs.lionengine.core.drawable |
Classic drawable classes for a ready to use image manipulation.
|
com.b3dgs.lionengine.core.filter |
Filter implementations package.
|
com.b3dgs.lionengine.graphic |
Graphic basic dedicated package.
|
Modifier and Type | Method and Description |
---|---|
static Image |
Drawable.loadImage(ImageBuffer surface)
Load an image from a java image (sharing the same surface).
|
static Sprite |
Drawable.loadSprite(ImageBuffer surface)
Load a sprite from a buffered image (sharing the same surface).
|
static SpriteAnimated |
Drawable.loadSpriteAnimated(ImageBuffer surface,
int horizontalFrames,
int verticalFrames)
Load an animated sprite, giving horizontal and vertical frames (sharing the same surface).
|
static SpriteTiled |
Drawable.loadSpriteTiled(ImageBuffer surface,
int tileWidth,
int tileHeight)
Load a tiled sprite using an image reference, giving tile dimension (sharing the same surface).
|
Modifier and Type | Method and Description |
---|---|
ImageBuffer |
FilterHq3x.filter(ImageBuffer source) |
ImageBuffer |
FilterHq2x.filter(ImageBuffer source) |
ImageBuffer |
FilterBlur.filter(ImageBuffer source) |
ImageBuffer |
FilterBilinear.filter(ImageBuffer source) |
Modifier and Type | Method and Description |
---|---|
ImageBuffer |
FilterHq3x.filter(ImageBuffer source) |
ImageBuffer |
FilterHq2x.filter(ImageBuffer source) |
ImageBuffer |
FilterBlur.filter(ImageBuffer source) |
ImageBuffer |
FilterBilinear.filter(ImageBuffer source) |
Modifier and Type | Method and Description |
---|---|
static ImageBuffer |
Graphics.applyMask(ImageBuffer imageBuffer,
ColorRgba maskColor)
Apply color mask to the image.
|
ImageBuffer |
FactoryGraphic.applyMask(ImageBuffer imageBuffer,
ColorRgba maskColor)
Apply color mask to the image.
|
static ImageBuffer |
Graphics.createImageBuffer(int width,
int height)
Create an image buffer.
|
ImageBuffer |
FactoryGraphic.createImageBuffer(int width,
int height)
Create an image buffer.
|
static ImageBuffer |
Graphics.createImageBuffer(int width,
int height,
ColorRgba transparency)
Create an image buffer.
|
ImageBuffer |
FactoryGraphic.createImageBuffer(int width,
int height,
ColorRgba transparency)
Create an image buffer.
|
ImageBuffer |
Filter.filter(ImageBuffer source)
Apply a filter to the image source.
|
static ImageBuffer |
Graphics.flipHorizontal(ImageBuffer image)
Apply an horizontal flip to the input image.
|
ImageBuffer |
FactoryGraphic.flipHorizontal(ImageBuffer image)
Apply an horizontal flip to the input image.
|
static ImageBuffer |
Graphics.flipVertical(ImageBuffer image)
Apply a vertical flip to the input image.
|
ImageBuffer |
FactoryGraphic.flipVertical(ImageBuffer image)
Apply a vertical flip to the input image.
|
static ImageBuffer |
Graphics.getImageBuffer(ImageBuffer imageBuffer)
Get an image buffer from an image buffer.
|
ImageBuffer |
FactoryGraphic.getImageBuffer(ImageBuffer imageBuffer)
Get an image buffer from an image buffer.
|
static ImageBuffer |
Graphics.getImageBuffer(Media media)
Get an image buffer from an image file.
|
ImageBuffer |
FactoryGraphic.getImageBuffer(Media media)
Get an image buffer from an image file.
|
ImageBuffer |
RasterImage.getRaster(int id)
Get the raster from its ID.
|
static ImageBuffer |
Graphics.getRasterBuffer(ImageBuffer img,
int fr,
int fg,
int fb,
int er,
int eg,
int eb,
int size)
Get raster buffer from data.
|
ImageBuffer |
FactoryGraphic.getRasterBuffer(ImageBuffer image,
int fr,
int fg,
int fb,
int er,
int eg,
int eb,
int refSize)
Get raster buffer from data.
|
ImageBuffer |
Image.getSurface()
Get the surface which represents the image.
|
static ImageBuffer |
Graphics.resize(ImageBuffer image,
int width,
int height)
Resize input image buffer.
|
ImageBuffer |
FactoryGraphic.resize(ImageBuffer image,
int width,
int height)
Resize input image buffer.
|
static ImageBuffer |
Graphics.rotate(ImageBuffer image,
int angle)
Rotate input image buffer.
|
ImageBuffer |
FactoryGraphic.rotate(ImageBuffer image,
int angle)
Rotate input image buffer.
|
static ImageBuffer[] |
Graphics.splitImage(ImageBuffer image,
int h,
int v)
Split an image into an array of sub image.
|
ImageBuffer[] |
FactoryGraphic.splitImage(ImageBuffer image,
int h,
int v)
Split an image into an array of sub image.
|
Modifier and Type | Method and Description |
---|---|
List<ImageBuffer> |
RasterImage.getRasters()
Get all rasters.
|
Modifier and Type | Method and Description |
---|---|
static ImageBuffer |
Graphics.applyMask(ImageBuffer imageBuffer,
ColorRgba maskColor)
Apply color mask to the image.
|
ImageBuffer |
FactoryGraphic.applyMask(ImageBuffer imageBuffer,
ColorRgba maskColor)
Apply color mask to the image.
|
ImageBuffer |
Filter.filter(ImageBuffer source)
Apply a filter to the image source.
|
static ImageBuffer |
Graphics.flipHorizontal(ImageBuffer image)
Apply an horizontal flip to the input image.
|
ImageBuffer |
FactoryGraphic.flipHorizontal(ImageBuffer image)
Apply an horizontal flip to the input image.
|
static ImageBuffer |
Graphics.flipVertical(ImageBuffer image)
Apply a vertical flip to the input image.
|
ImageBuffer |
FactoryGraphic.flipVertical(ImageBuffer image)
Apply a vertical flip to the input image.
|
static ImageBuffer |
Graphics.getImageBuffer(ImageBuffer imageBuffer)
Get an image buffer from an image buffer.
|
ImageBuffer |
FactoryGraphic.getImageBuffer(ImageBuffer imageBuffer)
Get an image buffer from an image buffer.
|
static ImageBuffer |
Graphics.getRasterBuffer(ImageBuffer img,
int fr,
int fg,
int fb,
int er,
int eg,
int eb,
int size)
Get raster buffer from data.
|
ImageBuffer |
FactoryGraphic.getRasterBuffer(ImageBuffer image,
int fr,
int fg,
int fb,
int er,
int eg,
int eb,
int refSize)
Get raster buffer from data.
|
static ColorRgba |
UtilColor.getWeightedColor(ImageBuffer surface,
int sx,
int sy,
int width,
int height)
Get the weighted color of an area.
|
static ImageBuffer |
Graphics.resize(ImageBuffer image,
int width,
int height)
Resize input image buffer.
|
ImageBuffer |
FactoryGraphic.resize(ImageBuffer image,
int width,
int height)
Resize input image buffer.
|
static ImageBuffer |
Graphics.rotate(ImageBuffer image,
int angle)
Rotate input image buffer.
|
ImageBuffer |
FactoryGraphic.rotate(ImageBuffer image,
int angle)
Rotate input image buffer.
|
static void |
Graphics.saveImage(ImageBuffer image,
Media media)
Save an image into a file.
|
void |
FactoryGraphic.saveImage(ImageBuffer image,
Media media)
Save an image into a file.
|
static ImageBuffer[] |
Graphics.splitImage(ImageBuffer image,
int h,
int v)
Split an image into an array of sub image.
|
ImageBuffer[] |
FactoryGraphic.splitImage(ImageBuffer image,
int h,
int v)
Split an image into an array of sub image.
|
Constructor and Description |
---|
RasterImage(ImageBuffer surface,
Media rasterFile,
int rasterHeight,
boolean smooth)
Create a rastered image.
|
Copyright © 2017 Byron 3D Games Studio. All rights reserved.