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

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

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ content
string

Raw byte content of the image.

↳ mime_type
string

Encoding 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.

Generated from protobuf field bytes content = 1;

Returns
Type
Description
string

setContent

Raw byte content of the image.

Generated from protobuf field bytes content = 1;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getMimeType

Encoding mime type for the image.

Generated from protobuf field string mime_type = 2;

Returns
Type
Description
string

setMimeType

Encoding mime type for the image.

Generated from protobuf field string mime_type = 2;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getWidth

Width of the image in pixels.

Generated from protobuf field int32 width = 3;

Returns
Type
Description
int

setWidth

Width of the image in pixels.

Generated from protobuf field int32 width = 3;

Parameter
Name
Description
var
int
Returns
Type
Description
$this

getHeight

Height of the image in pixels.

Generated from protobuf field int32 height = 4;

Returns
Type
Description
int

setHeight

Height of the image in pixels.

Generated from protobuf field int32 height = 4;

Parameter
Name
Description
var
int
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: