User Tag List

Results 1 to 5 of 5

Thread: Change 'Height' or 'Width' of object in pixels

  1. #1
    Clicker Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)

    Join Date
    Sep 2008
    Location
    Western Australia
    Posts
    256
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Change 'Height' or 'Width' of object in pixels

    I know that I can scale objects on the X or Y axis (or both), but I cannot find an option simply to change an object's height or width in pixels.

    e.g. "Set height = 480"

    Often, I want to specify a height or width in pixels, and I am currently calculating the scale to achieve this; not difficult, but an extra step that might be avoided.

    As ever, it could be something obvious I have missed, so I'd be grateful if someone could advise.

    Thanks

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Change 'Height' or 'Width' of object in pixels

    You can use Jaffob's Object Resizer extension.
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Change 'Height' or 'Width' of object in pixels

    Currently you have to calculate the scale to set the width to some specific size.

    When I need to do that I just set the scale to:
    Code:
    newSize / originalSize
    Be sure that it uses floating point calculations.

  4. #4
    Clicker Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)iOS Export Module (Steam)

    Join Date
    Sep 2008
    Location
    Western Australia
    Posts
    256
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Change 'Height' or 'Width' of object in pixels

    Quote Originally Posted by StephenL
    You can use Jaffob's Object Resizer extension.
    Thanks for the suggestions, but I'm mainly working on applications for SQF export.

    Quote Originally Posted by Andos
    When I need to do that I just set the scale to:
    Code:
    newSize / originalSize
    Be sure that it uses floating point calculations.
    That's what I am doing at the moment.

    Thanks all; I was just concerned that I had missed the obiouvs.

  5. #5
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Change 'Height' or 'Width' of object in pixels

    1/(X Right ( "Object" )-X Left ( "Object" ))*[number of pixels wide]

Similar Threads

  1. Retrieve height/width
    By Cossin in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd June 2010, 08:05 PM
  2. How to get backdrop width/height?
    By Bornemix in forum Extension Development
    Replies: 0
    Last Post: 6th December 2009, 06:07 PM
  3. Web Control Object - height and width ?
    By DJ_Wild in forum File Archive
    Replies: 4
    Last Post: 6th August 2009, 05:58 AM
  4. Height and width problems in web control object
    By DJ_Wild in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 5th August 2009, 08:20 AM
  5. Virtual Height and Width, what are they?
    By Durnus in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 16th September 2006, 05:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •