Search found 2 matches
- 2015-02-05T16:23:37-07:00
- Forum: Magick++
- Topic: How do I force Image type in write?
- Replies: 1
- Views: 8889
Re: How do I force Image type in write?
After stepping through the source code (file png.c) in the debugger, I found a solution. A solution that works is to prepend "PNG48:" to the output file name. For example: pImage->write("PNG48:d:\\temp\\Test1.png"); Using this method, I was able to dispense with creating the Image as a copy of a ...
- 2015-02-05T13:48:10-07:00
- Forum: Magick++
- Topic: How do I force Image type in write?
- Replies: 1
- Views: 8889
How do I force Image type in write?
I'm unable to find any useful, current information on forcing the Image type when I save a file, via write("filename"). My output file is being color-optimized, but I don't want it to be. Here's a short example: Image *pImage = new Image("d:\\temp\\Tile.png"); Pixels *pCache = new Pixels(*pImage ...