Hello,
I have problem with converting bitmap - QImage to bit array.
I just dont't know which function I have to use.
Can someone suggest me something?
Thanks
Wojtek
Hello,
I have problem with converting bitmap - QImage to bit array.
I just dont't know which function I have to use.
Can someone suggest me something?
Thanks
Wojtek
Did you read the QImage documentation? Looks like QImage::bits() is exactly what you need.
<=== The Great Pumpkin says ===>
Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.
Thanks for reply.
Yes I did...
According to the documentation this function returns a pointer to the first pixel data, but I need to store all information about every pixel RGB colors in separate cell.
Well, then it seems like a nested pair of loops based on QImage::height(), QImage::width(), and QImage::pixel() would do it, don't you think?
Thank you.
Bookmarks