tclhpdf(2) 0.1.0 "tclhpdf Image Handler"

NAME

tclhpdf - tclhpdf Image Handler

TABLE OF CONTENTS

    TABLE OF CONTENTS
    SYNOPSIS
    DESCRIPTION
    COMMANDS
    REFERENCE
    SEE ALSO
    KEYWORDS
    COPYRIGHT

SYNOPSIS

COMMANDS
hpdfImageObj getSize
hpdfImageObj getSize2 sizeName
hpdfImageObj getWidth
hpdfImageObj getHeight
hpdfImageObj getBitsPerComponent
hpdfImageObj getColorSpace
hpdfImageObj setColorMask rmin rmax gmin gmax bmin bmax
hpdfImageObj setMaskImage hpdfImageObj

DESCRIPTION

The Image handler command have subcommands to control images.

COMMANDS

hpdfImageObj getSize
getSize gets the size of the image of an image object. It returns tcl list {width height}.

hpdfImageObj getSize2 sizeName
getSize2 gets the size of the image of an image object. It doen't return value, but set the result to sizeName varible. The return value is same as getSize.

hpdfImageObj getWidth
getWidth gets the width of the image of an image object.

hpdfImageObj getHeight
getHeight gets the height of the image of an image object.

hpdfImageObj getBitsPerComponent
getBitsPerComponent gets the number of bits used to describe each color component.

hpdfImageObj getColorSpace
getColorSpace gets the name of the image's color space. It returns a string "DeviceGray", "DeviceRGB", "DeviceCMYK" or "Indexed".

hpdfImageObj setColorMask rmin rmax gmin gmax bmin bmax
setColorMask sets the transparent color of the image by the RGB range values. The color within the range is displayed as a transparent color. The Image must be RGB color space.

rmin is the lower limit of Red. It must be between 0 and 255. rmax is the upper limit of Red. It must be between 0 and 255. gmin is the lower limit of Green. It must be between 0 and 255. gmax is the upper limit of Green. It must be between 0 and 255. bmin is the lower limit of Blue. It must be between 0 and 255. bmax is the upper limit of Blue. It must be between 0 and 255.

hpdfImageObj setMaskImage hpdfImageObj
setMaskImage sets the mask image.

the arg image specify the handle of an image object which is used as image-mask. This image must be 1bit gray-scale color image.

REFERENCE

SEE ALSO

tclhpdf, tclhpdfAnnotation, tclhpdfDescription, tclhpdfDoc, tclhpdfEncoder, tclhpdfExtGState, tclhpdfFont, tclhpdfImage, tclhpdfOutline, tclhpdfPage

KEYWORDS

pdf

COPYRIGHT

Copyright © 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
Copyright © 2007 OHTSUKA, yoshio <ohtsuka.yoshio@gmail.com>