Jump to content

derzonk

Newbies
  • Content Count

    1
  • Joined

  • Last visited

Everything posted by derzonk

  1. First let me point out that Code Lab is a great tool. I've done some experiments and some things just did not work the way I expected. Have a look at this: void Render(Surface dst, Surface src, Rectangle rect) { byte t = (byte)rect.Top; ColorBgra CurrentPixel; for(int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = src[x,y]; CurrentPixel.R = t; CurrentPixel.G = t; CurrentPixel.B = t; dst[x,y] = CurrentPixel; } } } It's a pretty useless e
×
×
  • Create New...