coredump
11 years agoVisitor
roBitmap Scale
I have a HD image that I want to scale to fit in a given region, is there a way to do this ? Currently, it is cropped to the region. img = CreateObject("roBitmap", "pkg:/images/logo.png") ' S...
"psatish" wrote:
Hi
I assume you mean using
DrawScaledObject(x as Integer, y as Integer, scaleX as Float, scaleY as Float, src as Object) as Boolean
But this function takes either a roBitmap or roRegion and source, it doesn' t take a file as source. In order to use this we need to get the file into bitmap first. So this wont work