s410i
9th December 2009, 11:25
Hello!
In QImage class we have function bits() witch is overloaded:
uchar * bits ()
const uchar * bits () const
My problem is that when I want to call uchar * bits () function, just like that:
uchar *bitsImage = image.bits();
I'm getting an error:
error: invalid conversion from 'const uchar*' to 'uchar*'
So I would like to ask how I can call the uchar * bits () function?
Best regards
s410i
In QImage class we have function bits() witch is overloaded:
uchar * bits ()
const uchar * bits () const
My problem is that when I want to call uchar * bits () function, just like that:
uchar *bitsImage = image.bits();
I'm getting an error:
error: invalid conversion from 'const uchar*' to 'uchar*'
So I would like to ask how I can call the uchar * bits () function?
Best regards
s410i