Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
Decode interprets b as data representing a PNG image. It decodes the image and returns a *gdf.Ximage and an error. The if the error is nil, the returned XObject can be drawn to a ContentStream. This function may not be ideal for all varieties of PNG. In particular, grayscale images with alpha channels are converted to their NRGBA equivalents, which may have the effect of significantly increasing the image's encoding size. Applications sensitive to performance may benefit from processing the image data separately and then generating the image's XObject representation by way of the gdf.NewImageXObj function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.