Search found 4 matches

by shiengchyi
2011-05-02T00:06:26-07:00
Forum: Users
Topic: Zero size of JPEG image with WriteImage function
Replies: 2
Views: 5169

Re: Zero size of JPEG image with WriteImage function

I got the setting myself.
It should set the attribute "file" of imageInfo, instead of the attribute "filename" of imageInfo.
by shiengchyi
2011-04-28T19:31:05-07:00
Forum: Users
Topic: Zero size of JPEG image with WriteImage function
Replies: 2
Views: 5169

Zero size of JPEG image with WriteImage function

I got new problem when I use WriteImage in MagickCore. I got a zero size JPEG image with no error. The image_info setting is below: ImageInfo *imgInfo; imgInfo = AcquireImageInfo(); char * tmpStr; sprintf(tmpStr,"%dx%d",width,height); sprintf(imgInfo->filename,"%s",Path); //Path is the file path ...
by shiengchyi
2011-04-28T18:41:25-07:00
Forum: Users
Topic: The run time error of ImageToFile in MagickCore
Replies: 2
Views: 4399

Re: The run time error of ImageToFile in MagickCore

Yeah~ It is wording now!! Thank you very much~!!
by shiengchyi
2011-04-28T01:24:38-07:00
Forum: Users
Topic: The run time error of ImageToFile in MagickCore
Replies: 2
Views: 4399

The run time error of ImageToFile in MagickCore

I use the ConstituteImage function to generate a GRAY Level image, then use the ImageToFile function to save the image file in JPEG format. The version of ImageMagick is 6.5.4-8 2009-10-24 Q16 OpenMP. Here is the code. ExceptionInfo *exception; exception = AcquireExceptionInfo(); Image *img; img ...