Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Graphics
  4. Make picturebox image mirror vertical

Make picturebox image mirror vertical

Scheduled Pinned Locked Moved Graphics
question
5 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Krishnraj
    wrote on last edited by
    #1

    Hi all, i make one application in which i have one picturebox and i want to make picturebox mirror vertically. so image is displayed mirror vertically. so is there any methode or property available for this situation ? Thanks in advance ..

    Rana Krishnraj

    M 1 Reply Last reply
    0
    • K Krishnraj

      Hi all, i make one application in which i have one picturebox and i want to make picturebox mirror vertically. so image is displayed mirror vertically. so is there any methode or property available for this situation ? Thanks in advance ..

      Rana Krishnraj

      M Offline
      M Offline
      Matthew Butler 0
      wrote on last edited by
      #2

      Before you load the PictureBox with the image... theImage.RotateFlip(RotateFlipType.RotateNoneFlipY); Hope this helps.

      Matthew Butler

      K M 2 Replies Last reply
      0
      • M Matthew Butler 0

        Before you load the PictureBox with the image... theImage.RotateFlip(RotateFlipType.RotateNoneFlipY); Hope this helps.

        Matthew Butler

        K Offline
        K Offline
        Krishnraj
        wrote on last edited by
        #3

        hi Matthew, Thanks for replying.. :) Its a perfect solution

        Rana Krishnraj

        1 Reply Last reply
        0
        • M Matthew Butler 0

          Before you load the PictureBox with the image... theImage.RotateFlip(RotateFlipType.RotateNoneFlipY); Hope this helps.

          Matthew Butler

          M Offline
          M Offline
          mahboobeh mohamadi
          wrote on last edited by
          #4

          hi it dosent work for an image that captured by BitBlt?!!! what should i do if i want to mirror this image(a BitBlt image)?

          و این منم زنی تنها در آستانه فصلی سرد...

          M 1 Reply Last reply
          0
          • M mahboobeh mohamadi

            hi it dosent work for an image that captured by BitBlt?!!! what should i do if i want to mirror this image(a BitBlt image)?

            و این منم زنی تنها در آستانه فصلی سرد...

            M Offline
            M Offline
            mahboobeh mohamadi
            wrote on last edited by
            #5

            i fix that! System.IntPtr srcDC = GetDC(f.Handle); Bitmap bmp = new Bitmap(****50****, f.Height + 30); Graphics g = Graphics.FromImage(bmp); System.IntPtr bmDC = g.GetHdc(); BitBlt(bmDC, 0, 0, **50**, bmp.Height, srcDC, r, -30, 0x00CC0020 /*SRCCOPY*/); r += 10; ReleaseDC(f.Handle, srcDC); g.ReleaseHdc(bmDC); g.Dispose(); Image img; img = bmp; img.RotateFlip(RotateFlipType.RotateNoneFlipX); f3.pictureBox1.Image = img; i should set bitmaps width to 50!(because my pixtureboxs width and actually my last images width is 50); tnx.

            و این منم زنی تنها در آستانه فصلی سرد...

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups