Author Topic: BlitzMAx SetScale command in PB  (Read 2172 times)

0 Members and 1 Guest are viewing this topic.

Offline Pot Noodle

  • Sponsor
  • Amiga 1200
  • *******
  • Posts: 271
  • Karma: 15
  • Computers have lots of memory but no imagination
    • View Profile
BlitzMAx SetScale command in PB
« on: October 25, 2013 »
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.

Code: [Select]
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
« Last Edit: October 30, 2013 by Pot Noodle »