Image

Overview

Image is a type in Aspose.PDF FOSS for Go.

Image holds an extracted image with its encoded data and metadata.

This type provides 2 methods for working with Image objects in Go programs. Available methods include: Save, WriteTo. All public members are accessible to any Go application after installing the Aspose.PDF FOSS for Go package. Properties: BPC, ColorSpace, Data, Format, Height, Inline, and 5 more.

Properties

NameTypeAccessDescription
Data[]byteRead/WriteGets the data.
FormatImageFormatRead/WriteGets the format.
WidthintRead/WriteGets the width.
HeightintRead/WriteGets the height.
BPCintRead/WriteGets the bpc.
ColorSpaceImageColorSpaceRead/WriteGets the color space.
Xfloat64Read/WriteGets the x.
Yfloat64Read/WriteGets the y.
PageWidthfloat64Read/WriteGets the page width.
PageHeightfloat64Read/WriteGets the page height.
InlineboolRead/WriteGets the inline.

Methods

SignatureDescription
Save(path: string)errorSave writes the image data to a file.
WriteTo(w: io.Writer)(int64, error)WriteTo writes the image data to w.

See Also