FoxitPDFSDKforWeb v10.0.0
Foxit PDF SDK for Web
ImageData Interface Reference

Image data used for overlay comparison, which can be obtained through PDFPage.render or CanvasRenderingContext2D.getImageData or CanvasRenderingContext2D.createImageData. More...

Public Attributes

Optional< ArrayBuffer > buffer
 The bitmap data buffer returned by PDFPage.render API. More...
 
Optional< Uint8ClampedArray > data
 A Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (inclusive). More...
 
number height
 The actual height in pixels of the image. More...
 
number width
 The actual width in pixels of the image. More...
 

Detailed Description

Image data used for overlay comparison, which can be obtained through PDFPage.render or CanvasRenderingContext2D.getImageData or CanvasRenderingContext2D.createImageData.

Note
ImageData instances will only contain buffer or data.
Since
9.0.0
See also
PDFPage.render

Member Data Documentation

◆ buffer

Optional<ArrayBuffer> ImageData::buffer

The bitmap data buffer returned by PDFPage.render API.

Since
9.0.0

◆ data

Optional<Uint8ClampedArray> ImageData::data

A Uint8ClampedArray representing a one-dimensional array containing the data in the RGBA order, with integer values between 0 and 255 (inclusive).

Since
9.0.0

◆ height

number ImageData::height

The actual height in pixels of the image.

Since
9.0.0

◆ width

number ImageData::width

The actual width in pixels of the image.

Since
9.0.0

Foxit Software Corporation Logo
@2024 Foxit Software Incorporated. All rights reserved.