PdfPageImageTexture class Null safety

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. [...]
read-only, override
hasUpdatedTexture bool
read-only
pageNumber int
final
pdfDocument PdfDocument
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
texHeight int?
read-only
texId int
final
texWidth int?
read-only

Methods

dispose() Future<void>
Release the object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 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.