HMG Graph based on Bos Taurus

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
mol
Posts: 3723
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: HMG Graph based on Bos Taurus

Post by mol »

I have a question (that was on the forum, but I can't find it :-) )
Is it possible to display generated graph without saving it to a file?
I need to generate temporary image and hold it only in memory
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG Graph based on Bas Taurus

Post by Rathinagiri »

I understand your concern. What we have is a Bitmap Handle in BosTaurus library. That we destroy after saving it to a file. For having that to be retained in the memory I don't know what impacts it will make in memory consumption.

Better Claudio answer this.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: HMG Graph based on Bas Taurus

Post by andyglezl »

Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG Graph based on Bas Taurus

Post by srvet_claudio »

Rathinagiri wrote:I understand your concern. What we have is a Bitmap Handle in BosTaurus library. That we destroy after saving it to a file. For having that to be retained in the memory I don't know what impacts it will make in memory consumption.

Better Claudio answer this.
The memory consumption is approximately the size of the image saved in BMP format. In practice it does not affect system performance.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG Graph based on Bas Taurus

Post by srvet_claudio »

mol wrote:I can destroy it later...
Yes. When you do not need more the image must be destroy the bitmap.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG Graph based on Bas Taurus

Post by Rathinagiri »

In that case, how can we assign the bitmap handle to an Image control of a form?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG Graph based on Bas Taurus

Post by srvet_claudio »

Rathinagiri wrote:In that case, how can we assign the bitmap handle to an Image control of a form?
With:

BT_HMGSetImage (cFormName, cControlName, hBitmap, lReleasePrevious)

Sets a specified bitmap into an Image Control of HMG (@...IMAGE) and automatically releases the handle of the bitmap previously associated to the Image Control.

cFormName: is the name (e.g. "Win1") of the parent window.

cControlName: is the name (e.g. "Image1") of the image control.

hBitmap: is a handle to the bitmap to set.

lReleasePrevious: releases of the hBitmap previous associate to Image Control. For default is .T.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG Graph based on Bas Taurus

Post by Rathinagiri »

Wonderful Claudio. I was not searching for the solution in BT. :) Thanks
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply