public class LibgdxFrameConverter extends FrameConverter<com.badlogic.gdx.graphics.Pixmap>
Pixmap and Frame.
The alpha channel is not converted and memory cannot be shared.frame| Constructor and Description |
|---|
LibgdxFrameConverter() |
| Modifier and Type | Method and Description |
|---|---|
com.badlogic.gdx.graphics.Pixmap |
convert(Frame frame)
Converts a
Frame to a Pixmap. |
Frame |
convert(com.badlogic.gdx.graphics.Pixmap pixmap)
Converts a
Pixmap to a Frame. |
com.badlogic.gdx.graphics.Pixmap |
fastConvert(Frame frame)
Converts a
Frame to a Pixmap. |
closepublic Frame convert(com.badlogic.gdx.graphics.Pixmap pixmap)
Pixmap to a Frame.convert in class FrameConverter<com.badlogic.gdx.graphics.Pixmap>pixmap - the Pixmap to convert,RGBA8888 formatpublic com.badlogic.gdx.graphics.Pixmap convert(Frame frame)
Frame to a Pixmap.convert in class FrameConverter<com.badlogic.gdx.graphics.Pixmap>frame - the Frame to convertpublic com.badlogic.gdx.graphics.Pixmap fastConvert(Frame frame)
Frame to a Pixmap.
Available only when the format of the Frame is #AV_PIX_FMT_RGBA.
Faster than convert(Frame)frame - the Frame to convertCopyright © 2026. All rights reserved.