I guess I don't understand the distinction you are making. Can't I use scissor with a bitmap draw to show any part of an image at any location on the screen? You can also scale and translate the image using the transformation matrix.
Or, do you want to create an entirely new bitmap? If so, I suppose you could do it yourself with memory reads/writes. There is also the screen snapshot thing...
Post by jamesbowman on Jul 29, 2020 15:43:03 GMT -8
Scissor operates in screen space, restricting all drawing to a rectangle on screen:
GD.ScissorXY(100, 300); GD.ScissorSize(32, 32); GD.Begin(BITMAPS); GD.Vertex2f(PIXELS(100), PIXELS(300)); But there is also bitmap size. This lets you limit the size of the bitmap drawn on screen. So for your 64x64 bitmap example, you might limit it to 32x32 top-left with:
The key to this type of screen is to think of it as something completely different to the screens of a lifetime (namely: ILI9341, ILI9488, etc.). You could resort to using cells for more complex cuts or in few cuts, you could use the asset creation tool