Package icyllis.arc3d.sketch.image
Class RasterImage
java.lang.Object
icyllis.arc3d.core.RefCnt
icyllis.arc3d.sketch.Image
icyllis.arc3d.sketch.image.RasterImage
- All Implemented Interfaces:
RefCounted
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionRasterImage
(@NonNull Pixmap pixmap, @NonNull @RawPtr PixelRef pixelRef, boolean mayBeMutable) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Override this method to invoke de-allocation of the underlying resource.boolean
static @Nullable @SharedPtr Image
makeFromBitmap
(@NonNull Pixmap pixmap, @RawPtr PixelRef pixelRef) static @Nullable @SharedPtr Image
makeFromRasterBitmap
(@NonNull Pixmap pixmap, @RawPtr PixelRef pixelRef, int copyMode) Methods inherited from class icyllis.arc3d.sketch.Image
getAlphaType, getBounds, getBounds, getColorSpace, getColorType, getContext, getHeight, getInfo, getTextureSize, getUniqueID, getWidth, isAlphaOnly, isOpaque, 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
@SharedPtr public static @Nullable @SharedPtr Image makeFromBitmap(@NonNull Pixmap pixmap, @RawPtr @RawPtr PixelRef pixelRef) -
makeFromRasterBitmap
@SharedPtr public static @Nullable @SharedPtr Image makeFromRasterBitmap(@NonNull Pixmap pixmap, @RawPtr @RawPtr PixelRef pixelRef, 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
-