Added in S Extensions 18
PdfPageImageObject
class PdfPageImageObject : PdfPageObject
kotlin.Any | ||
↳ | android.graphics.pdf.component.PdfPageObject | |
↳ | android.graphics.pdf.component.PdfPageImageObject |
Represents an image object on a PDF page. This class extends PdfPageObject
and provides methods to access and modify the image content.
Summary
Public constructors | |
---|---|
PdfPageImageObject(bitmap: Bitmap) Constructor for the PdfPageImageObject. |
Public methods | |
---|---|
Bitmap |
Returns the bitmap image of the object. |
Unit |
Sets the bitmap image of the object. |
Inherited functions | |
---|---|
Public constructors
PdfPageImageObject
Added in S Extensions 18
PdfPageImageObject(bitmap: Bitmap)
Constructor for the PdfPageImageObject. Sets the object type to IMAGE.
Parameters | |
---|---|
bitmap |
Bitmap: This value cannot be null . |
Exceptions | |
---|---|
java.lang.IllegalArgumentException |
if bitmap config is not ARGB_8888. |
Public methods
getBitmap
Added in S Extensions 18
fun getBitmap(): Bitmap
Returns the bitmap image of the object.
Return | |
---|---|
Bitmap |
The bitmap image of the object. This value cannot be null . |
setBitmap
Added in S Extensions 18
fun setBitmap(bitmap: Bitmap): Unit
Sets the bitmap image of the object.
Parameters | |
---|---|
bitmap |
Bitmap: The bitmap image to set. This value cannot be null . |
Exceptions | |
---|---|
java.lang.IllegalArgumentException |
if bitmap config is not ARGB_8888. |