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 rendrering process.

Implementers

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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateRect({int destX = 0, int destY = 0, int? width, int? height, int srcX = 0, int srcY = 0, int? texWidth, int? texHeight, double? fullWidth, double? fullHeight, bool backgroundFill = true}) Future<bool>
Update texture's sub-rectangle (destX,destY,width,height) with the sub-rectangle (srcX,srcY,width,height) of the PDF page scaled to fullWidth x fullHeight size. If backgroundFill is true, the sub-rectangle is filled with white before rendering the page content. The method can also resize the texture if you specify texWidth and texHeight. Returns true if succeeded.

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

create({required PdfDocument pdfDocument, required int pageNumber}) Future<PdfPageImageTexture>
Create a new Flutter Texture. The object should be released by calling dispose method after use it.