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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidOverride this method to invoke de-allocation of the underlying resource.booleanstatic @SharedPtr ImagemakeFromBitmap(Pixmap pixmap, @RawPtr Pixels pixels) static @SharedPtr ImagemakeFromRasterBitmap(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:RefCntOverride this method to invoke de-allocation of the underlying resource.- Specified by:
deallocatein classRefCnt
-
isRasterBacked
public boolean isRasterBacked()- Overrides:
isRasterBackedin classImage
-