I have hex data and I want to convert it to 200×200 pixel grayscale picture, but I can’t find a way to do it.
Can anyone please show me a way or give me a resource to solve this problem??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For what you have written (too few) you could create
Bitmap bmp = new Bitmap(200,200).Then you could use
bmp.SetPixel(x,y,color)according to your text data.UPDATE:
Assuming a lot of things:
SECOND UPDATE:
Your file contanins 16×2450=39200 pixel, so your image cannot be 200×200. I assume it’s 200×192.
This code works, even if I don’t understand what image represents…
You can try this: