Page 1 of 1

Small problem with API for Visual Basic (resize)

Posted: 2009-03-02T12:11:19-07:00
by ziofil
Hi all!!! My name is Filippo and i ve just logged for the first time to this forum. Compliments to the community!
I m Italian so sorry if my English is probably not 100% correct.

I ve to ask you a solution to a little problem I found working on ImageMagick API for VB.
I need to understand what is the exact code to resize images thru the ImageMagick API for Visual Basic. I found some example in the web but no one of these wants to work!!!
Please help me! I m stopped by this (i think small) problem.
Waiting for Your reply, thank you very much!!! :D

Re: Small problem with API for Visual Basic (resize)

Posted: 2009-03-05T03:51:35-07:00
by ziofil
Up Please! :D

Re: Small problem with API for Visual Basic (resize)

Posted: 2009-03-11T07:10:10-07:00
by MoBO
Hi Filippo,

you can check my thread here ; viewtopic.php?f=8&t=13295

This will give you some ideas.

The code is ;

Code: Select all

MSGS = img.Convert("-resize", "x128", BMP, JPN)
Where ;
  • "-resize" = the action made
    "x128" = the final size
    "BPM" = the source image
    "JPN" = the destination image
The best is to test with the command line and then adapt to VB by separating all the command with " and ,

Again, check my samples.
Another note ; I still have some trouble sometimes so... keep trying ;o)