My code is this, but I noticed that it stretches the whole image to fit the box.
Code:
image = Sprite_Base.new image.visible = false image.bitmap = Cache.image(image_name, 0) rect = Rect.new(0, 0, image.bitmap.width, image.bitmap.height) target = Rect.new(120, line_height * 2, 218, 143) contents.stretch_blt(target, image.bitmap, rect, 255)Is it possible to scale proportionately? Is there a certain math for it that I need to know?