Module ep_image

License: MIT File: ep_image.erl Description: Manage, scale, and render images.

Copyright © 2018 Lloyd R. Prentice

Version: .01

Authors: Lloyd R. Prentice.

Description

License: MIT File: ep_image.erl Description: Manage, scale, and render images

Function Index

create/3Create image map Position is {X,Y}; lower-left corner of image Size is {width, W} | {height, H} | {W,H} | {max, W, H} The max Size version can be used to set a max limit on width, height or both dimensions (undefined is a valid value for at most 1 W or H value).
get_image/1Return image.
image/3Display image.
image_size/1Return image size.
position/1Return position.
update_image_size/2Update image size.
update_position/2Update image position.

Function Details

create/3

create(FilePath::list(), Position::tuple(), Size::tuple()) -> map()

Create image map Position is {X,Y}; lower-left corner of image Size is {width, W} | {height, H} | {W,H} | {max, W, H} The max Size version can be used to set a max limit on width, height or both dimensions (undefined is a valid value for at most 1 W or H value)

get_image/1

get_image(ImageFilePath::string()) -> binary()

Return image

image/3

image(PDF::identifier(), Job::map(), ImageMap::map()) -> ok

Display image

image_size/1

image_size(ImageMap::map()) -> tuple()

Return image size

position/1

position(ImageMap::map()) -> tuple()

Return position

update_image_size/2

update_image_size(ImageSize::tuple(), ImageMap::map()) -> tuple()

Update image size

update_position/2

update_position(Position::tuple(), ImageMap::map()) -> tuple()

Update image position


Generated by EDoc