wxImage and draw raw rgb bytes
问题 I am programming image viewer as school task and I cant use any libraries for reading or manipulating images. First I started with bmp format. I have created class for handle this type of file. As GUI framework I am using wxWidgets. So I have plain rgb bytes array, prepared for wxImage constructor wxImage(int width, int height, unsigned char* data, bool static_data = false). Problem is that when I convert it to wxBitmap and draw to dc it's ignoring rgb values a draw only black picture. I