Search found 21 matches

by Minok
2016-08-15T12:39:05-07:00
Forum: MagickWand
Topic: Converting a bi-tonal to a color image..
Replies: 18
Views: 51461

Re: Converting a bi-tonal to a color image..

Thanks for the help, all. Yeah, the documentation and my assumptions complicated finding what I knew must be a trivial solution. The problem is both LevelImageColors and LevelColorsImage show up to some extent due to the headers. For using the static compiled library, I only need one .h file ...
by Minok
2016-08-12T16:37:12-07:00
Forum: MagickWand
Topic: Converting a bi-tonal to a color image..
Replies: 18
Views: 51461

Re: Converting a bi-tonal to a color image..

After some fiddling around with LevelColorsImage() as the documentation language was a big unclear to me, I found the combination: foreColor.red = QuantumRange; foreColor.green = 0; foreColor.blue = 0; backColor.red = 0; backColor.green = QuantumRange; backColor.blue = 0; LevelColorsImage ...
by Minok
2016-08-12T15:29:13-07:00
Forum: MagickWand
Topic: Converting a bi-tonal to a color image..
Replies: 18
Views: 51461

Re: Converting a bi-tonal to a color image..

When it reads the bitonal TIFF it already has a color map - one entry is black and one is white. Does it? Which part of your code finds that? I expect you can do this with palettes, if you really want to. I would just SetNoPalette() to ensure it doesn't have a palete, then LevelColorsImage(). You ...
by Minok
2016-08-12T15:15:37-07:00
Forum: MagickWand
Topic: Converting a bi-tonal to a color image..
Replies: 18
Views: 51461

Re: Converting a bi-tonal to a color image..

Thanks for the tips. At present I'm using ImageMagick 6.8.9-0 Q16 x86 compiled into static library files on a Windows 7 platform with Visual Studio 2010. I intend to upgrade to 6.9.5-5 or 7.0.2-7 at some point. I'd think these sort of basic image manipulation features would be working in 6.8.x ...
by Minok
2016-08-10T12:51:15-07:00
Forum: MagickWand
Topic: Converting a bi-tonal to a color image..
Replies: 18
Views: 51461

Re: Converting a bi-tonal to a color image..

When it reads the bitonal TIFF it already has a color map - one entry is black and one is white. Maybe my confusion is with misleading information in attributes of the imagemagick image structure that don't apply to the actual pixel payload. So the question then is HOW does one convert the bilevel ...
by Minok
2016-08-10T11:23:50-07:00
Forum: MagickWand
Topic: Converting a bi-tonal to a color image..
Replies: 18
Views: 51461

Re: Converting a bi-tonal to a color image..

I'm interfacing with the library via c/c++ function calls, not using command line tools. I"m creating the image from a TIFF blob: #include "magick/MagickCore.h" #include "magick/image.h" Image* imgMagickImage; // an imagemagick image handle ImageInfo* imgMagickInfo= AcquireImageInfo(); // the ...
by Minok
2016-08-09T17:31:30-07:00
Forum: MagickWand
Topic: Converting a bi-tonal to a color image..
Replies: 18
Views: 51461

Converting a bi-tonal to a color image..

I've read in a TIFF that is a bitonal compressed image and want to change the colors associated with the white and black, say make it green and blue. To accomplish this I assume I first need to convert the two color image into a full RGB image.. but my attempts at changing the colorspace, changing ...
by Minok
2014-08-08T13:29:09-07:00
Forum: Developers
Topic: Comiling ImageMagik as a single static library.
Replies: 0
Views: 4192

Comiling ImageMagik as a single static library.

Is it possible to build imageMagik as a single static .lib file? (as opposed to some 25 lib files) - thus producing a single vc100.pdb (symbol database for debugging on windows) This would be most usefull for simplifying the linker settings for my application that uses imageMagik. It would also ...
by Minok
2014-05-13T14:37:05-07:00
Forum: Developers
Topic: Core C API - Manipulating Alpha Channnel
Replies: 5
Views: 11613

Re: Core C API - Manipulating Alpha Channnel

Hm, I seem to have finally figured out the missing magic sauce. Using SetImageAlphaChannel( imgMagickPngImage, AlphaChannelType:: ActivateAlphaChannel ); produces a fully semi-transparent image - that turns on the alpha channel with some value used across the board (56285 in my case). Using ...
by Minok
2014-05-13T07:52:37-07:00
Forum: Developers
Topic: Core C API - Manipulating Alpha Channnel
Replies: 5
Views: 11613

Re: Core C API - Manipulating Alpha Channnel

When I make that change, I get no transparency what-so-ever - ie its all opaque. Its is causing more things than just activating/not activating alpha channels. Let me add more of the code to show the full set of variables, in case those others are affecting things... MagickCoreGenesis ...
by Minok
2014-05-12T12:33:44-07:00
Forum: Developers
Topic: Core C API - Manipulating Alpha Channnel
Replies: 5
Views: 11613

Re: Core C API - Manipulating Alpha Channnel

Yes, sorry about the confusion of white and black. The ultimate goal is to get the 'white' (or specific color pixels) to be transparent, but for now I'm trying to just get any color to be transparent and the others to be opaque. My current code, that is not working still, is this: // set the ...
by Minok
2014-05-02T11:12:54-07:00
Forum: Users
Topic: Core C API - Manipulating Alpha Channnel
Replies: 0
Views: 4130

Core C API - Manipulating Alpha Channnel

Cross posting this as the Users forum may be the more appropriate avenue - but to keep the responses in a single thread, respond on the following thread in Developers I'm having issues using the core C API and enabling and then painting an alpha channel via TransparentPaintImage http://www ...
by Minok
2014-05-01T18:48:33-07:00
Forum: Developers
Topic: Core C API - Manipulating Alpha Channnel
Replies: 5
Views: 11613

Core C API - Manipulating Alpha Channnel

I've got my monochrome TIFF in memory and want to add an alpha channel and then apply the correct alpha values via TransparentPaintImage. But I either end up with no alpha (bitonal image again - does ImageMagick optimize on output ?) Or a completely transparent on every pixel image. Currently, I'm ...
by Minok
2014-05-01T16:21:37-07:00
Forum: Developers
Topic: ImageToFile - what is it supposed to do exactly?
Replies: 0
Views: 4635

ImageToFile - what is it supposed to do exactly?

I've been working on this problem where I"m handed some CCITT Group 4 compressed image data with the other metadata needed to define an image. I've managed to get the blob into ImageMagick to hopefully process things and convert the image to other formats internally (not to have ImageMagick write to ...
by Minok
2014-05-01T15:58:29-07:00
Forum: Developers
Topic: How to CCITT decode a blob - BlobToImage isn't doing it.
Replies: 1
Views: 5924

Re: How to CCITT decode a blob - BlobToImage isn't doing it.

I've managed to find a solution to my problem and a guess a the reason. Why doesn't it work as described above? I think ImageMagick does not support pure CCITT compressed data - but then it cannot possibly do so, because needed knowledge is not encoded in the CCITT blob such as the dimensions of the ...