- bmp = new Bitmap(936, 864);
- hair_bitmap = this.loadBitmap('img/hair/', hair, hue, false);
- body_bitmap = this.loadBitmap('img/bases/', body, hue, false);
- bmp.blt(body_bitmap, 0, 0, 936, 864, 0, 0, 936, 864);
- bmp.blt(hair_bitmap, 0, 0, 936, 864, 0, 0, 936, 864);
- return bmp;
Expand to see the code.
Am I using this right? I'm just getting a blank image.
bmp.blt(source, sx, sy, sw, sh, dx, dy, dw, dh);
So I resume that sw and sh are source width and height, and dw dh are destination width and height. That's fine.
But sx sy, dx dy, I presume are the x,y I am drawing at. Am I right to set these at 0?
I am trying to layer several bitmaps on top of one another.