MCPcopy Create free account
hub / github.com/coronalabs/corona / SetScale

Method SetScale

platform/android/ndk/AndroidImageData.cpp:124–127  ·  view source on GitHub ↗

Sets the scale of the loaded image compared to the original file. scale = loadedImageWidth / originalImageWidth This is expected to be set if the image loader had to downscale/downsample the image so that the rendering system can increase the size of the image's rectangle back to the original image file's size. Note that this ImageData object's width and height is expected to match

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

OnDecodeFromMethod · 0.80
CopyBitmapInfoMethod · 0.80
CopyBitmapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected