Package icyllis.arc3d.core.image
Class RasterImage
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.core.Image
icyllis.arc3d.core.image.RasterImage
- All Implemented Interfaces:
RefCounted
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Override this method to invoke de-allocation of the underlying resource.boolean
static @SharedPtr Image
makeFromBitmap
(Pixmap pixmap, @RawPtr Pixels pixels) static @SharedPtr Image
makeFromRasterBitmap
(Pixmap pixmap, @RawPtr Pixels pixels, int copyMode) Methods inherited from class icyllis.arc3d.core.Image
getAlphaType, getBounds, getBounds, getColorSpace, getColorType, getContext, getHeight, getInfo, getTextureSize, getUniqueID, getWidth, isAlphaOnly, isTextureBacked
-
Field Details
-
COPY_MODE_IF_MUTABLE
public static final int COPY_MODE_IF_MUTABLE- See Also:
-
COPY_MODE_ALWAYS
public static final int COPY_MODE_ALWAYS- See Also:
-
COPY_MODE_NEVER
public static final int COPY_MODE_NEVER- See Also:
-
-
Constructor Details
-
Method Details
-
makeFromBitmap
@Nullable @SharedPtr public static @SharedPtr Image makeFromBitmap(@Nonnull Pixmap pixmap, @RawPtr @RawPtr Pixels pixels) -
makeFromRasterBitmap
@Nullable @SharedPtr public static @SharedPtr Image makeFromRasterBitmap(@Nonnull Pixmap pixmap, @RawPtr @RawPtr Pixels pixels, int copyMode) -
deallocate
protected void deallocate()Description copied from class:RefCnt
Override this method to invoke de-allocation of the underlying resource.- Specified by:
deallocate
in classRefCnt
-
isRasterBacked
public boolean isRasterBacked()- Overrides:
isRasterBacked
in classImage
-