How? I want to get the width and height of an image inside a loop:
void Render(Surface dst, Surface src, Rectangle rect)
{
for (int y = rect.Top; y < rect.Bottom; y++)
{
if (IsCancelRequested)
return;
for (int x = rect.Left; x < rect.Right; x++)
{
ColorBgra srcPixel = src[x, y];
ColorBgra dstPixel = dst[x, y];
// Here
dst[x,y] = CurrentPixel;
}
}
}