Search found 6 matches

by rohitlal
2019-01-09T04:22:09-07:00
Forum: Users
Topic: LongPixel not working in image.read
Replies: 5
Views: 4813

Re: LongPixel not working in image.read

snibgo wrote: 2019-01-09T02:32:38-07:00
rohitlal wrote:Unhandled exception
I suggest you include an error handler, and print the exception error message it gives.
I tried to put the whole code in try catch statements but still not able to catch that exception.
Sorry for novice questions, but i'm new to c++.
by rohitlal
2019-01-09T04:20:45-07:00
Forum: Users
Topic: Writing grayscale image in single channel IM7
Replies: 0
Views: 10786

Writing grayscale image in single channel IM7

Can anyone please guide me, how do I write a grayscale image in single channel in IM 7+ version.

I've tried

Code: Select all

 
 	image.type(GrayscaleType);
 	image.colorSpace(GRAYColorSpace);
 
But, couldn't get final image as single channel image.
by rohitlal
2019-01-08T21:10:39-07:00
Forum: Users
Topic: LongPixel not working in image.read
Replies: 5
Views: 4813

Re: LongPixel not working in image.read

... the program doesn't runs well & throws error. What goes wrong? What is the error message? Error Message : Unhandled exception at 0x00007FFAEF063A7B (CORE_RL_MagickCore_.dll) in GrablinkSnapshot.exe: 0xC0000005: Access violation reading location 0x000001DB381B0000. Please tell me where I'm going ...
by rohitlal
2019-01-08T21:06:47-07:00
Forum: Users
Topic: Can't change bit depth of image in magick++
Replies: 2
Views: 3759

Re: Can't change bit depth of image in magick++

snibgo wrote: 2019-01-08T08:24:03-07:00 What version of IM?

Perhaps your quantized image has only 16 shades of gray.
IM version : 7.0.8-23 Q16 x64 2019-01-02

My image in pixel data is 8-bit grayscale image. But, magick++ is writing it as 4-bit image from the above code. Please tell me where I'm going wrong.
by rohitlal
2019-01-08T07:52:51-07:00
Forum: Users
Topic: LongPixel not working in image.read
Replies: 5
Views: 4813

LongPixel not working in image.read

I'm reading image from the pixel data : image.read(4096,4096, "R", CharPixel, pixelDataPointer); image.write("my_image.bmp"); and it works fine. But, when I use "LongPixel" , the program doesn't runs well & throws error. image.read(4096,4096, "R", LongPixel, pixelDataPointer); image.write("my_image ...
by rohitlal
2019-01-08T07:48:18-07:00
Forum: Users
Topic: Can't change bit depth of image in magick++
Replies: 2
Views: 3759

Can't change bit depth of image in magick++

I'm generating an image from the Pixel data array in magick++ : image.read(4096,4096, "R", CharPixel, pixelArrayPointer); image.read(4096,4096, "G", CharPixel, pixelArrayPointer); image.read(4096,4096, "B", CharPixel, pixelArrayPointer); Then, converting it to grayscale : image.quantizeColorSpace ...