From: <ba...@us...> - 2009-03-31 13:26:46
|
Revision: 47 http://scrupp.svn.sourceforge.net/scrupp/?rev=47&view=rev Author: basique Date: 2009-03-31 13:26:29 +0000 (Tue, 31 Mar 2009) Log Message: ----------- - new cairo function: Cairo.image_surface_create_from_file(filename) This function loads the image file and returns an image surface which can be used with cairo. It supports the same image formats as scrupp.addImage() and the virtual filesystem provided by PhysFS. Note: It does not support images with an alpha channel! In this case, save the image as png and use Cairo.image_surface_create_from_png() The cairo example masking.slua shows the usage of this function. Modified Paths: -------------- trunk/examples/cairo/masking.slua trunk/src/lua-oocairo-1.2/obj_surface.c trunk/src/lua-oocairo-1.2/oocairo.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |