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. C / C++ / MFC
  4. Using gdiplus to skew, rotate and resize a matrix (image)

Using gdiplus to skew, rotate and resize a matrix (image)

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsdata-structuresbusinesshelp
2 Posts 2 Posters 0 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
    Kiran Satish
    wrote on last edited by
    #1

    Hi, I have a 2D matrix (basically an array of data) with values between 0-255 and 'm trying to do some skewing, rotation and resizing of it using gdiplus. I can use that data to display an image using gdiplus by creating a 8bit bitmap with the array as pixel data and attaching it to a gdiplus bitmap object and using that with a gdiplus graphics object. I am not sure how I can perform skew in both directions, then rotate and then resize it as per my application requirements. At the end I would like to save the bitmap that has all those transformations applied as a tiff file (or for now as bitmap). any help is appreciated thanks

    PKNT

    R 1 Reply Last reply
    0
    • K Kiran Satish

      Hi, I have a 2D matrix (basically an array of data) with values between 0-255 and 'm trying to do some skewing, rotation and resizing of it using gdiplus. I can use that data to display an image using gdiplus by creating a 8bit bitmap with the array as pixel data and attaching it to a gdiplus bitmap object and using that with a gdiplus graphics object. I am not sure how I can perform skew in both directions, then rotate and then resize it as per my application requirements. At the end I would like to save the bitmap that has all those transformations applied as a tiff file (or for now as bitmap). any help is appreciated thanks

      PKNT

      R Offline
      R Offline
      Rozis
      wrote on last edited by
      #2

      See: SetWorldTransform() at http://msdn.microsoft.com/en-us/library/dd183475(v=VS.85).aspx[^]

      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