This was requested.
Not sure how useable speedwise it is but any comments welcome.
Not sure how useable speedwise it is but any comments welcome.
SuperStrict Function ce_drawpixmap(pixmap:TPixmap,xpos:Float,ypos:Float) Local xscale:Float,yscale:Float GetScale(xscale,yscale) Local scaled_pixmap:TPixmap=ResizePixmap(pixmap,pixmap.width*xscale,pixmap.height*yscale) DrawPixmap scaled_pixmap,xpos,ypos End Function Graphics 800,600 Local mypixmap:TPixmap=LoadPixmap("max.png") SetScale 2.0,4.0 ce_drawpixmap(mypixmap,256,0) DrawPixmap mypixmap,0,0 Flip WaitKey()