What is the fastest way to get column of pixels from bitmap?
I don’t consider two loops because it could take to long. I will appreciate for any idea. Thanks!
What is the fastest way to get column of pixels from bitmap? I don’t
Share
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.
I would suggest to convert your bitmap into a vector of bytes using the following code:
Then it becomes easy to retrieve the pixels on the column you want. Just loop through the vector
myImageDatawith a step equals to the number of pixels per rows * the number of bytes per pixel.Just be careful about the number of bytes per pixel are used for the representation of your bitmap.
This depends on the
PixelFormat.