Results 1 to 5 of 5

Thread: Decimals in width/height

  1. #1

    Thread Starter
    Addicted Member Halon's Avatar
    Join Date
    Oct 2002
    Location
    under desk choking on rage
    Posts
    228

    Decimals in width/height

    Just wondering if a can assign a width and height to a picturebox or image box that is a decimal?
    I have tried this and then used a message box to retrieve the value but it chops off the decimal.
    pic1.width = 213.234
    msgbox pic1.width

    any ideas or is it impossible?

    thanks in advance

  2. #2
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    I don't think it's possible to for anything in a computer environment to be a fraction of a pixel. It will render it within the next highest pixel, and in the case of twips, I believe most computers have 15 twips per pixel for both x and y dimensions.
    <removed by admin>

  3. #3

    Thread Starter
    Addicted Member Halon's Avatar
    Join Date
    Oct 2002
    Location
    under desk choking on rage
    Posts
    228

    true true

    Thanks MB ... kinda what i thought. Damn, working on resizing jpegs to the correct proportions relative to their original sizes and the sc4rewup when i save them is the decimal error difference

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Don not have VB here, but can you change the ScaleMode property, which may enebale you to use decimals?
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  5. #5
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    the smallest thing the comp can show is pixels........ if you want parts of pixels then i don't see why you would...
    Remember, if someone's post was not helpful, you can always rate their post negatively .

Posting Permissions

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



Click Here to Expand Forum to Full Width