• Welcome to Dark Bit Factory & Gravity.
 

BlitzMAx SetScale command in PB

Started by Pot Noodle, October 25, 2013

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Pot Noodle

Information: scale_x and scale_y multiply the width and height of drawing commands where 0.5 will half the size of the drawing and 2.0 is equivalent to doubling the size.

This is my procedure i am using but it's not working right.


Procedure SetScale(Image, x.f, y.f)
   If ResizeImage(Image, ImageWidth(Image)*x, ImageHeight(Image)*y, #PB_Image_Smooth)
      ProcedureReturn 1
   Else
      ProcedureReturn 0
   EndIf
EndProcedure


Anyone shine a light on this  ;D

[Edit]

Sorted