#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    6
    Rep Power
    0

    Exclamation Is Possible to save contents of TScrollbox to a image file?


    Helloo! I'm new here, And I have a urgent question.

    since the width of delphi forms have a limit, and I wanted to make a big thing, with many labels, edits, shapes, etc, I did that on a Scrollbox, so i can scroll . My question is, i need to print it, or save as image ALL the content of the Scrollbox, and i have no idea how to do it. Can someone give me a little help?

    thanks, Healwave.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    155
    Rep Power
    3
    Hi Healwave, welcome to the forum! I decided to put together a tutorial for you, complete with sample code and working demo project. Take a look that tutorial here:

    http://forum.codecall.net/topic/72155-capture-image-of-twincontrol-instances/#entry640213
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    6
    Rep Power
    0
    It works like a charm, but i have a question: When i do "vimg.SaveToFile('c:\scrollbox.bmp');" , on the "get Image" button, it saves the content of the scrollbox but only of what we are seeing at the moment! I have more objects than the ones i see. I have to scroll to the right and click again get image to get the rest of the scrollbox, but it will override the old file etc etc blablabla .. so that's not what i need.

    Do you know any way to save all the content of it into a image?

    Images are on the link that u answered me, i replyed there with the images.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2012
    Posts
    155
    Rep Power
    3
    I answered in the tutorial's thread. Thanks!

IMN logo majestic logo threadwatch logo seochat tools logo