But I want to do this dynamically. I have an e-commerce portal. When admin
enter products images he or she can choose the sizes and they can crop the
images. Up to here just one component can do this. And it is rad active
iload.

Kadir Avcı | Software Developer
Freelance Web Designer
web: www.kad1r.com
mob: +90 555 676 9793


On Thu, Aug 20, 2009 at 3:49 PM, Wyrm <[email protected]> wrote:

>
> Hello!
>
> You can resize pictures with GDI components. (System.Drawing
> Namespace)
> Hence, with the "Graphics" object...
>
>        Dim original As Bitmap = [your picture here]
>        Dim result As New Bitmap(width, height)
>        result.SetResolution(xRes, yRes)
>        Dim graph As Graphics = Graphics.FromImage(result)
>        graph.InterpolationMode =
> Drawing2D.InterpolationMode.HighQualityBicubic
>        graph.DrawImage(original, _
>                        New Rectangle(0, 0, width, height), _
>                        New Rectangle(0, 0, picture.Width,
> picture.Height), _
>                        GraphicsUnit.Pixel)
>        result.Save(stream, _codec, _encoderParams)
>
> On 20 août, 11:15, Kadir Avci <[email protected]> wrote:
> > Hi. I need image resizer for vs2008. I know the best one is rad active
> iload
> > but I don't have enough money to buy.
> > Do you know free component for image resize?
> > Thanks.
> >
> > Kadir Avcı | Software Developer
> > Freelance Web Designer
> > web:www.kad1r.com
> > mob: +90 555 676 9793
> > Sent from Izmir, 35, Turkey
>

Reply via email to