[Q] SimpleGraph - Saving *large* drawing areas....

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

[Q] SimpleGraph - Saving *large* drawing areas....

Postby TheEdge » July 4th, 2006, 11:12 am

G'Day,

I have a SG set up with a large graph constraints of say 2550 px in width and 3300 px in height. There are object(s) top left and bottom right. I would like to save the SG as a machine independent representation. So using what is available in terms of file formats (meta file, bitmap, component streaming) the only one I can use is TBitmap that is machine independent. However with the size of the SG the Delphi TBitmap gets an EOutOfResources error when it attempts to save such large bitmaps (This is because http://www.efg2.com/Lab/Graphics/VeryLargeBitmap.htm).

So has anyone got any suggestions on how I can save a SG with these dimensions as an image of some form BMP, PNG, GIF etc.? If this makes use of third party components then so be it - I would just like to see some code examples and ideas if anyone has any.

TIA
TheEdge
Active Member
Active Member
 
Posts: 15
Joined: March 14th, 2006, 8:47 pm

Re: [Q] SimpleGraph - Saving *large* drawing areas....

Postby TheEdge » July 18th, 2006, 12:24 pm

Has *anyone* got any ideas?
TheEdge
Active Member
Active Member
 
Posts: 15
Joined: March 14th, 2006, 8:47 pm

Postby Johnny_Bit » July 18th, 2006, 3:10 pm

hardcoded binary savings... got it?

simple, neat, but how to do it from metadata pic... I just don't know.
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am

Postby TheEdge » July 19th, 2006, 9:10 am

Johnny_Bit wrote:hardcoded binary savings... got it?

What do you mean?
TheEdge
Active Member
Active Member
 
Posts: 15
Joined: March 14th, 2006, 8:47 pm

Postby Johnny_Bit » July 19th, 2006, 2:28 pm

bit by bit doing it... you know, not using any stupid structures or whatever, just plain flat binary file.
Johnny_Bit
VIP Member
VIP Member
 
Posts: 455
Joined: June 15th, 2003, 9:56 am


Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 2 guests

cron