FAQ - Image Transparency


Q: How to display images with transparent backgrounds?

A: It is possible in PTB to display PNG images with transparent backgrounds. For example, when adding a curved or irregularly shaped image on top of another texture where you want to eliminate the white pixels that form a box around your image. To do this, follow these steps:

For more info, try > help imread, or search the Matlab documentation for PNG
Many thanks to Mario Kleiner for this solution.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki