Reading, manipulating, and writing pixels
I am trying to do in VB for Excel or Powerpoint somthing I'm not sure can be done with the limitations of VBA, but I hope I am wrong.
I want to
1) display a picture, then go pixel by pixel, get the color
2)manipulate the positioning of the pixel
3)put the pixel back on the screen or into a file
Can I use GetPixel? How do I do that in VBA?
Any help is much appreciated.
Re: Reading, manipulating, and writing pixels
Welcome to the Forums.
The only way that it could probably be done is to use a UserForm in Excel.
You could set the picture property to
your image, but from there you need to get the hDC of the form so you can use the getpixel API, etc. I think maybe
CreateDC or something similar. This is not too very easy. ;)