Adding in a png method

This commit is contained in:
Andy Meneely
2014-07-16 23:14:56 -04:00
parent 7e86630ad7
commit 6c1d32a8cd
6 changed files with 25 additions and 3 deletions
+12
View File
@@ -0,0 +1,12 @@
module Squib
class Card
def png(file, x, y)
cc = cairo_context
png = Cairo::ImageSurface.from_png(file)
cc.set_source(png, x, y)
cc.paint
end
end
end