Jump to content

sheeva

Active Members
  • Posts

    38
  • Joined

  • Last visited

Reputation Activity

  1. Like
    sheeva got a reaction from jjproone in Image Resize, How?   
    Hi, I have see this code in different post but when i try it he make more a Crop than a resize.

    I explain,

    the Vertical and Horizontal new size are correct (300x400) but about 15% (maybe 20%) of original image is stripped out on bottom of newly genrerated pictures.
    no very difficult to verify on you example (bliss.jpg).

    So something is wrong i think because i suppose tha the main aim of your code is to conserve all pictures (even at a different size).

    I you have any solution for that it will be great.

    Sorry for my poor english
  2. Like
    sheeva got a reaction from JeffAllenNJ in Image Resize, How?   
    So far i have find the problem:

    You write this

    ;Draw the loaded image onto the blank bitmap at the size you want
    _GDIPLus_GraphicsDrawImageRect($hGraphic, $hImage2, 0, 0, $iW, $iW)

    and the correction is

    ;Draw the loaded image onto the blank bitmap at the size you want
    _GDIPLus_GraphicsDrawImageRect($hGraphic, $hImage2, 0, 0, $iW, $iH)

    It's just a typing error $iW instead of $IH

    Now it work great ! thank's.
×
×
  • Create New...