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. WPF
  4. Rotating Image in 3 directional..

Rotating Image in 3 directional..

Scheduled Pinned Locked Moved WPF
helpquestion
3 Posts 3 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.
  • R Offline
    R Offline
    ravi vellanky
    wrote on last edited by
    #1

    I've an image which is 2 dimensional. I want the image should become 3 dimensional. And that should be rotatable? Can any one help me in this concept?

    P M 2 Replies Last reply
    0
    • R ravi vellanky

      I've an image which is 2 dimensional. I want the image should become 3 dimensional. And that should be rotatable? Can any one help me in this concept?

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      The answer to this depends on what you mean by making a 2D image 3D. Strictly speaking, in most cases you can't do this automatically (the obvious exception here being converting a bitmap to a terrain using heightmaps), but you could use a modelling tool such as 3DS Max, Maya, Cinema 4D or Zam3D to create a 3D representation of your image. Once you have the model created, rotating it is fairly simple. This[^] article should really help you.

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      My blog | My articles | MoXAML PowerToys

      1 Reply Last reply
      0
      • R ravi vellanky

        I've an image which is 2 dimensional. I want the image should become 3 dimensional. And that should be rotatable? Can any one help me in this concept?

        M Offline
        M Offline
        Mohammad Dayyan
        wrote on last edited by
        #3

        You can use this XAML for rotating a Grid.

        <Grid.RenderTransform>
        <TransformGroup>
        <ScaleTransform ScaleX="1" ScaleY="1"/>
        <SkewTransform AngleX="0" AngleY="0"/>
        <RotateTransform Angle="-6"/><!-- by changing this property you can rotate the Grid -->
        <TranslateTransform X="0" Y="0"/>
        </TransformGroup>
        </Grid.RenderTransform>

        Thus you can write it for an image.

        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