Google Cloud Document Ai V1 Client - Class Image (1.9.0)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Image.

Rendered image contents for this page.

Generated from protobuf message google.cloud.documentai.v1.Document.Page.Image

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document \ Page

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ content string

Raw byte content of the image.

↳ mime_type string

Encoding media type (MIME type) for the image.

↳ width int

Width of the image in pixels.

↳ height int

Height of the image in pixels.

getContent

Raw byte content of the image.

Returns
TypeDescription
string

setContent

Raw byte content of the image.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getMimeType

Encoding media type (MIME type) for the image.

Returns
TypeDescription
string

setMimeType

Encoding media type (MIME type) for the image.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getWidth

Width of the image in pixels.

Returns
TypeDescription
int

setWidth

Width of the image in pixels.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getHeight

Height of the image in pixels.

Returns
TypeDescription
int

setHeight

Height of the image in pixels.

Parameter
NameDescription
var int
Returns
TypeDescription
$this