Hi, my tool is working right now, but it's way too slow and I'm using GetPixel,SetPixel, to basically reconstruct and process images.
What I think I need to do is:
--get a dump of the bytes (GetPixelsPtr() ?)
--sort through uints by 4 for rgba pixels
--do my comparison/maths on range of bytes and edit/replace
My question is what is the best way to do this?
GetPixelsPtr returns a pointer so I can't just use sizeof() to sort?
Is the size stored in
My memory is kind of screwed up because I'm going off when I did something like this manually a long time ago. Does using GetPixelsPtr and just inputting width and height handle everything?
Is it fast working directly with pixel data for large images?
I was thinking of converting to an indexed form based off a palette for the the loop-through operations and then converting back to pixels.
//////////////////////////////////////////////////////////////////////
Part 2
////////////////////////////////////////////////////////////////////
Okay so let's see if I can recap some to be more clear.
GetPixel == slow
GetPixelsPtr() to grab entire image and set a new instance to be operated on?
OR
GetPixelsPtr() many times as replacement to GetPixel?
See what my problem is?