Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
What is the best way to get the pixels from any picture file in VB6.
I was thinking i could load the picture in a control that has a Device Context (maybe picturebox) and use the API function getPixel to get them. However that function requires an xPos and a yPos. How would i go about finding the xPos and yPos for all the pixels in the picture relative to the application and the screen.
If anyone has any idea how to do this or has a better way then I am all ears
thx in advance
P.S. what about setting pixels too, how could that be implemented?