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. How to handle Text Objects in a PaintShop Pro or PhotoShop type app?

How to handle Text Objects in a PaintShop Pro or PhotoShop type app?

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialgraphicsadobequestion
1 Posts 1 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.
  • C Offline
    C Offline
    cdsmith
    wrote on last edited by
    #1

    I am trying to use text in a PaintShop Pro or PhotoShop type application. Does any body have any ideas on how to do this. I am specifically interested in ideas about how you let the user manipulate the text object. For example the user can stretch the text object in either direction, or rotate the text or... I have started working on 2 solutions. The first is when I create a text object given a font name, font size, color and attributes (bold, italic...) I put it into a rich text control and grab the bitmap that is generated by the rich text control. Then stretching or rotating the text is basically stretchBlting or rotating a bitmap. This works well but looses quality (especially when printing). The sceond solution is when I create a text object given a font name, font size, color and attributes (bold, italic...) I create a logical font, using the LOGFONT structure. This gives rotation by creating the font rotated. It also gives great quality when printing. But this causes problems with stretching. I have not gotten this approach to stretch into long or heigh text. OK, does anybody have any recomemdations about these approaches? Or another approach? Thanks for any advice! Craig Smith

    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