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