Forum Discussion

EnTerr's avatar
EnTerr
Roku Guru
11 years ago

How does DrawScaledObject() reduce images?

Does someone know how ifDraw2D.DrawScaledObject() scales images, in particular reducing an image?
(There are different algorithms possible)

Specifically, say i have scaleX and scaleY being 0.5 or 0.25 (i.e. reducing image 2x or 4x). Will each of the new pixels be a kind of "average" (bi-linear or bi-cubic interpolation over 4 or 16 pixels respectively) - or will it pick a single pixel (nearest-neighbour)?

15 Replies