Want to convert the byte set to save the file, picture should be how to convert
CodePudding user response:
A byte represents a point of one of the 256 colors,CodePudding user response:
Can try to fill the 32-bit bitmap, the bitmap file header information and head to you in advance according to the total set appropriate values of pixelsCodePudding user response:
http://blog.sina.com.cn/s/blog_9ebefd050101kfuh.htmlCodePudding user response:
Bitmap fill, OpenCV populateCodePudding user response:
CreateDIBitmap??CodePudding user response:
Base64 encodingCodePudding user response:
If you the address of the content itself is a complete picture.So you only need to put the binary data can be saved to a file directly. Just need to decide what type of images. These files are PNG, for example, you will save. PNG suffix. Other image types like
If you point to the address of the content is not a complete picture, the image is only part of the image data, then you need to know what kind of these data, such as the ARGB4 bytes saved a pixel, and then you have to construct the corresponding image compression format, and then fill the file header and data part of the picture.