PdfPageImageTexture class abstract
Very limited support for Flutter's Texture based drawing. Because it does not transfer the rendered image via platform channel, it could be faster and more efficient than the PdfPageImage based rendering process.
Constructors
- PdfPageImageTexture({required PdfDocument pdfDocument, required int pageNumber, required int texId})
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- hasUpdatedTexture → bool
-
no setter
- pageNumber → int
-
final
- pdfDocument → PdfDocument
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- texHeight → int?
-
no setter
- texId → int
-
final
- texWidth → int?
-
no setter
Methods
-
dispose(
) → Future< void> - Release the object.
-
extractSubrect(
{int x = 0, int y = 0, required int width, required int height, double? fullWidth, double? fullHeight, bool backgroundFill = true, bool allowAntialiasingIOS = true}) → Future< bool> -
Extract sub-rectangle (
x
,y
,width
,height
) of the PDF page scaled tofullWidth
xfullHeight
size. IfbackgroundFill
is true, the sub-rectangle is filled with white before rendering the page content.allowAntialiasingIOS
specifies whether to allow use of antialiasing on iOS Quartz PDF rendering Returns true if succeeded. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
create(
{required FutureOr< PdfDocument> pdfDocument, required int pageNumber}) → Future<PdfPageImageTexture> - Create a new Flutter Texture. The object should be released by calling dispose method after use it.