How do I multiply pixels on an SDL Surface?
Posted
by
NoobScratcher
on Game Development
See other posts from Game Development
or by NoobScratcher
Published on 2012-10-05T14:46:04Z
Indexed on
2012/10/05
15:55 UTC
Read the original article
Hit count: 231
Okay so I'm able to put blank pixels into a surface and also draw gradient pixels rectangles,etc
But I don't know how to multiply the pixels on a surface so I was hoping someone could provide me information on this topic.
I was thinking you could get the members pixel and then * it by 2 but that didn't provide results I wanted so I'm now thinking that you have to actually get to the position in bytes in one location to the left and one location to the right and then store it in memory and then * that by 2 am I correct or what?
If so what is it that allows me to do that and how do I do that?
© Game Development or respective owner