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. Alter the dimensions of a metafile

Alter the dimensions of a metafile

Scheduled Pinned Locked Moved C / C++ / MFC
question
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.
  • D Offline
    D Offline
    Dimitris Vikeloudas
    wrote on last edited by
    #1

    Hi I use the CreateEnhMetaFile to create an enhanced metafile. The third parameter is the rectangle which give me the sizeo of the metafile. Is it possible to alter that side after the creation? This will allow me to scale better my metafile. Ideally I am locking for something like: CMetaFileDC * pDCMetaFile = .....; pDCMetaFile->CreateEnhanced(p_dc, filename.data(), &rect, NULL); rect = new sizes; pcDCMetaFile->alterSize(rect); Thanks a lot Always try to keep things as simple as possible

    S 1 Reply Last reply
    0
    • D Dimitris Vikeloudas

      Hi I use the CreateEnhMetaFile to create an enhanced metafile. The third parameter is the rectangle which give me the sizeo of the metafile. Is it possible to alter that side after the creation? This will allow me to scale better my metafile. Ideally I am locking for something like: CMetaFileDC * pDCMetaFile = .....; pDCMetaFile->CreateEnhanced(p_dc, filename.data(), &rect, NULL); rect = new sizes; pcDCMetaFile->alterSize(rect); Thanks a lot Always try to keep things as simple as possible

      S Offline
      S Offline
      Shog9 0
      wrote on last edited by
      #2

      Not sure what you're trying to accomplish - you can draw a metafile into any size area you desired. The size passed to CreateEnhanced() is more for future reference than anything else, it isn't enforced.

      Shog9

      I'm not the Jack of Diamonds... I'm not the six of spades. I don't know what you thought; I'm not your astronaut...

      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