As there is no MagickCore section, so I post here.
class Bitmap
{
Bitmap(const char* name)
{
data = property<Bitmap, unsigned char*>(this, &Bitmap::getData, NULL);
pImageInfo = AcquireImageInfo();
strcpy(pImageInfo->filename, name);
pImage = ReadImage(pImageInfo, pExceptionInfo);
}
inline unsigned char* getData() const
{
pImage->blob->data; //I cannot access the data
}
};
Does anybody know how to solve it?
pImage->blob->data not found
Re: pImage->blob->data not found
The blob structure associated with each image is private. Instead use ExportImagePixels() to export the image pixels in a variety of formats.
Re: pImage->blob->data not found
It works! Thanks!