Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 28th, 2012, 10:45 AM
Healwave Healwave is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 6 Healwave User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 25 sec
Reputation 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.

Reply With Quote
  #2  
Old September 30th, 2012, 05:23 AM
Luthfi Luthfi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 140 Luthfi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 53 m 15 sec
Reputation Power: 2
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

Reply With Quote
  #3  
Old September 30th, 2012, 07:56 AM
Healwave Healwave is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2012
Posts: 6 Healwave User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 4 m 25 sec
Reputation 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.

Reply With Quote
  #4  
Old October 2nd, 2012, 12:13 AM
Luthfi Luthfi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 140 Luthfi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 53 m 15 sec
Reputation Power: 2
I answered in the tutorial's thread. Thanks!

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Is Possible to save contents of TScrollbox to a image file?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap