Package com.artifex.solib
Class SOBitmap
java.lang.Object
com.artifex.solib.ArDkBitmap
com.artifex.solib.SOBitmap
- All Implemented Interfaces:
Comparable<ArDkBitmap>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.artifex.solib.ArDkBitmap
ArDkBitmap.Type -
Field Summary
Fields inherited from class com.artifex.solib.ArDkBitmap
bitmap, rect, serial, serialBase -
Constructor Summary
ConstructorsConstructorDescriptionSOBitmap(int w, int h) Allocate an SOBitmap of a specific size and default format.SOBitmap(int w, int h, ArDkBitmap.Type type) Allocate an ArDkBitmap of a specific size and format.SOBitmap(ArDkBitmap s, int x0, int y0, int x1, int y1) Create an ArDkBitmap that gives access to a subarea of another ArDkBitmap (sharing the same underlying native Bitmap). -
Method Summary
Modifier and TypeMethodDescriptionvoidalphaCombine(ArDkBitmap dst, ArDkBitmap alpha) Merge our 16-bit bitmap and an 8-bit alpha channel together into an existing 32-bit bitmap.voidcopyFrom(ArDkBitmap src) Copy the contents of another ArDkBitmap into this one.createBitmap(int x0, int y0, int x1, int y1) create a new bitmap representing a portion of this bitmap.voidMethods inherited from class com.artifex.solib.ArDkBitmap
allocateBitmap, compareTo, defaultConfig, defaultType, dispose, getBitmap, getHeight, getRect, getSerial, getWidth
-
Constructor Details
-
SOBitmap
public SOBitmap(int w, int h) Allocate an SOBitmap of a specific size and default format.- Parameters:
w- width of desired bitmap.h- height of desired bitmap.
-
SOBitmap
Create an ArDkBitmap that gives access to a subarea of another ArDkBitmap (sharing the same underlying native Bitmap).- Parameters:
s- ArDkBitmap that we want to represent a subrectangle of.x0- bound of sub rectangle.y0- bound of sub rectangle.x1- bound of sub rectangle.y1- bound of sub rectangle.
-
SOBitmap
Allocate an ArDkBitmap of a specific size and format.- Parameters:
w- width of desired bitmap.h- height of desired bitmap.type- pixel format required.
-
-
Method Details
-
copyFrom
Copy the contents of another ArDkBitmap into this one. ArDkBitmaps must be the same size.- Parameters:
src- The source bitmap to copy from.
-
alphaCombine
Merge our 16-bit bitmap and an 8-bit alpha channel together into an existing 32-bit bitmap.- Parameters:
dst- The destination bitmapalpha- The source alpha mask
-
invertLuminance
public void invertLuminance() -
createBitmap
create a new bitmap representing a portion of this bitmap.- Overrides:
createBitmapin classArDkBitmap
-