PDF v0.3.3 Pdf.Images.PNG View Source

Link to this section Summary

Functions

Decodes an image and returns the bit depth, height, width and colour type

Link to this section Functions

Link to this function

build_dictionary(image, extra)

View Source

Decodes an image and returns the bit depth, height, width and colour type

Examples:

> Pdf.Image.PNG.decode("path/to/image.png")
{:ok, {8, 75, 100, 3}) # 8 bits, height: 75px, width: 100px, color type: 3 (indexed colour)
Link to this function

prepare_image(image_data, objects)

View Source