Drawing images in different shapes VB.Net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JimBob

    #1

    Drawing images in different shapes VB.Net

    Hi, Thanks for your help in advance. I need some help with drawing
    images in VB.Net. This seems simple to me but I can't seem to find a
    good example to get me started. I want to take a source image which is
    a rectangle and then resize and stretch the image in to a different
    shape like a parallelogram. I have been trying to do this with GDI+ but
    need a better example then what is given. If someone could give me an
    example or point me to a good one you would be a great help.

    Thanks

  • Cor Ligthert [MVP]

    #2
    Re: Drawing images in different shapes VB.Net

    Jim,

    One of the methods, create a bitmap from your image and than use the endless
    times overloaded drawimage to write it in another bitmap.

    http://msdn.microsoft.com/library/de...imagetopic.asp

    I hope this helps,

    Cor



    "JimBob" <Ryan@jenscom.c omschreef in bericht
    news:1156255511 .280020.114440@ b28g2000cwb.goo glegroups.com.. .
    Hi, Thanks for your help in advance. I need some help with drawing
    images in VB.Net. This seems simple to me but I can't seem to find a
    good example to get me started. I want to take a source image which is
    a rectangle and then resize and stretch the image in to a different
    shape like a parallelogram. I have been trying to do this with GDI+ but
    need a better example then what is given. If someone could give me an
    example or point me to a good one you would be a great help.
    >
    Thanks
    >

    Comment

    • JimBob

      #3
      Re: Drawing images in different shapes VB.Net

      thanks for the link ive been messing with this already but cant get it
      to do what i want. Is it posible to take an image and redraw it into a
      shape other then a rectangle?

      thanks

      Comment

      • Mudhead

        #4
        Re: Drawing images in different shapes VB.Net

        Draw Skew
        For those who may not know this, you can have an optional Parameter in SQL. It took me forever to figure it out.


        "JimBob" <Ryan@jenscom.c omwrote in message
        news:1156258570 .360265.89660@7 5g2000cwc.googl egroups.com...
        thanks for the link ive been messing with this already but cant get it
        to do what i want. Is it posible to take an image and redraw it into a
        shape other then a rectangle?
        >
        thanks
        >

        Comment

        • JimBob

          #5
          Re: Drawing images in different shapes VB.Net

          Thanks for the help guys! I got the pic in a region and it works
          somewhat like i need it to but i need to stretch the image to fit the
          specific region. does anyone know how to do that?

          thanks again for all your help


          Mudhead wrote:
          Draw Skew
          For those who may not know this, you can have an optional Parameter in SQL. It took me forever to figure it out.

          >
          "JimBob" <Ryan@jenscom.c omwrote in message
          news:1156258570 .360265.89660@7 5g2000cwc.googl egroups.com...
          thanks for the link ive been messing with this already but cant get it
          to do what i want. Is it posible to take an image and redraw it into a
          shape other then a rectangle?

          thanks

          Comment

          • Mudhead

            #6
            Re: Drawing images in different shapes VB.Net

            Try making x1 and y2 bigger

            Dim x1 As Single = x + bmp.Width + 100
            '
            '
            Dim y2 As Single = y + bmp.Height + 100




            "JimBob" <Ryan@jenscom.c omwrote in message
            news:1156263404 .877885.149130@ m73g2000cwd.goo glegroups.com.. .
            Thanks for the help guys! I got the pic in a region and it works
            somewhat like i need it to but i need to stretch the image to fit the
            specific region. does anyone know how to do that?
            >
            thanks again for all your help
            >
            >
            Mudhead wrote:
            >Draw Skew
            >http://www.devx.com/vb2themax/Tip/19445
            >>
            >"JimBob" <Ryan@jenscom.c omwrote in message
            >news:115625857 0.360265.89660@ 75g2000cwc.goog legroups.com...
            thanks for the link ive been messing with this already but cant get it
            to do what i want. Is it posible to take an image and redraw it into a
            shape other then a rectangle?
            >
            thanks
            >
            >

            Comment

            Working...