Hi I'm trying to convert an application in Java from C# and this is the only problem I am having .. : Sidenote: That Bitmap class is a class I have made.
Java Code:
for (int x = 0; x < xTiles; x++) {
for (int y = 0; y < yTiles; y++) {
result[x][y] = new Bitmap(w, h);
bi.getRGB(bx + x * w, by + y * h, w, h,
result[x][y].pixels, 0, w);
}
}
What I have in C#:
for (int X = 0; X < XTiles; X++)
{
for (int Y = 0; Y < YTiles; Y++)
{
Result[X,Y] = new Bitmap(W, H);
}
}
But I cant seem to find the method or howTo do that in C# (getRGB). Its the only thing stopping from what I need to do to work. Thanks!