pImage->blob->data not found
Posted: 2012-11-01T07:44:16-07:00
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?
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?