Page 1 of 1
magickwand imagedepth 8bit problem
Posted: 2009-10-17T05:53:41-07:00
by mmickey
Hi folks,
for saving 8bit tiff or ppm I tried to use
but on windows and linux 16bit tiffs or ppms are saved.
Any ideas?
greets mike
Re: magickwand imagedepth 8bit problem
Posted: 2009-10-17T08:31:07-07:00
by el_supremo
Try MagickSetImageDepth(mw,8)
Pete
Re: magickwand imagedepth 8bit problem
Posted: 2009-10-17T09:48:47-07:00
by mmickey
Thank you very much, it works.
Why are there two versions aiming at the same setting?
greets mike
Re: magickwand imagedepth 8bit problem
Posted: 2009-10-17T10:49:00-07:00
by magick
Method settings that do not include Image in the name set attributes before an image is instantiated. If the method name includes Image, it sets the attributes after it is instantiated. MagickSetDepth() is useful, for example, to read an 16-bit raw RGB image from a file on disk. You could then use MagickSetImageDepth() after the raw image is read and you want to convert it to a depth of 8-bits.
Re: magickwand imagedepth 8bit problem
Posted: 2009-10-17T14:47:57-07:00
by mmickey
Thank you for your explanation.
greets mike