Content originally posted in LPCWare by Wouter on Wed Jul 03 01:02:26 MST 2013Hi,
The memory device itself is always rectangular, as it's defined by X0, Y0, Xsize and Ysize. I also don't really see how a memory device with no transparancy could help in displaying non-rectangular areas. In fact, I would use the transparancy feature for displaying a non-rectangular area since then you don't need to worry about the background...
In your case, you could simply define the memory device with a size fitting the triangle with transparancy enabled, draw the image to the memory device and copy it to the LCD. In fact, if it's only one drawing operation, you can probably leave out the memory device and draw your image directly to the LCD. Just make sure your triangle-shaped image has all pixels outside the triangle set to transparant.
Regards,
Wouter