Package com.pspdfkit.signatures
Object SignatureGraphic.Companion
-
- All Implemented Interfaces:
public class SignatureGraphic.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static SignatureGraphic.Companion
INSTANCE
-
Method Summary
Modifier and Type Method Description final SignatureGraphic
fromBitmap(Uri uri)
Creates a new SignatureGraphic from the image located at the given URI. final SignatureGraphic
fromBitmap(DataProvider dataProvider)
Creates a new SignatureGraphic from the image contained in the given data provider. final SignatureGraphic
fromPdf(DocumentSource source)
Creates a new SignatureGraphic from the PDF found at the given document source. -
-
Method Detail
-
fromBitmap
final SignatureGraphic fromBitmap(Uri uri)
Creates a new SignatureGraphic from the image located at the given URI. This method supports
file:///
URIs for accessing image files on the local file system,content://
URIs for loading an image from a content provider, andfile:///android_asset/
URIs for accessing image files from the app's assets.- Parameters:
uri
- Location of the image to use.- Returns:
The SignatureGraphic pointing to the given image.
-
fromBitmap
final SignatureGraphic fromBitmap(DataProvider dataProvider)
Creates a new SignatureGraphic from the image contained in the given data provider.
- Parameters:
dataProvider
- The DataProvider containing the image.- Returns:
The SignatureGraphic pointing to the given image.
-
fromPdf
final SignatureGraphic fromPdf(DocumentSource source)
Creates a new SignatureGraphic from the PDF found at the given document source.
- Parameters:
source
- The DocumentSource containing the PDF.- Returns:
The SignatureGraphic pointing to the given PDF.
-
-
-
-