[magick-users] create Image from 1D array

julyfly julyfly at gmail.com
Tue Dec 19 16:18:46 CST 2006


hi,

   i am writing a c++ programm , try to create Image from a IntensityArroy.

.
   my programm is follows:


    float *intensities = new float [512*512];
                ......

            Image image( 512, 512, "RGB", FloatPixel, intensities); 

  but it always get the exception when i debugging
        
          Unhandled exception at 0x004d0695 in FPtest.exe: 0xC0000005: Access violation reading location 0x01381000.. 

          

Can anyone tell me how can i   get a image from a Array? anyhelp wird be great appreciate!


   julyfly






julyfly
2006-12-19


More information about the Magick-users mailing list