BOS TAURUS: Questions and Suggestions
Moderator: Rathinagiri
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
BOS TAURUS: Questions and Suggestions
Hi all.
As suggested by Daniel Maximiliano, I created here a topic for questions and suggestions on Bos Taurus (graphic library for HMG).
Best Regards,
Claudio Soto.
As suggested by Daniel Maximiliano, I created here a topic for questions and suggestions on Bos Taurus (graphic library for HMG).
Best Regards,
Claudio Soto.
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: BOS TAURUS: Questions and Suggestions
Hi,
First of all I wish the best for this graphics library.
For me HMG is just the sweet wrapper of clipper/harbour over the bitter c/c++. Roberto's design of hiding the inner parts of the logic which the user need not know about is very successful. A person who starts using HMG doesn't need to know about Device Context for example.
So, my humble suggestion is having wrapper functions or an alternate syntax like the below:
First of all I wish the best for this graphics library.
For me HMG is just the sweet wrapper of clipper/harbour over the bitter c/c++. Roberto's design of hiding the inner parts of the logic which the user need not know about is very successful. A person who starts using HMG doesn't need to know about Device Context for example.
So, my humble suggestion is having wrapper functions or an alternate syntax like the below:
Code: Select all
DEFINE GRAPHICSAREA of Form1
DRAW LINE FROM nRow, nCol TO nRow, Col COLOR { nR, nG, nB }
DRAW CIRCLE AT nRow, nCol RADIUS nRadius
DRAW IMAGE cPicture AT nRow, nCol
END GRAPHICSAREA
CLEAR GRAPHICS AREA OF Form1 FROM nRow, nCol TO nRow, nCol
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: BOS TAURUS: Questions and Suggestions
Thanks Rathi, very good and very wise suggestion.rathinagiri wrote:So, my humble suggestion is having wrapper functions or an alternate syntax like the below:
Code:
DEFINE GRAPHICSAREA of Form1
DRAW LINE FROM nRow, nCol TO nRow, Col COLOR { nR, nG, nB }
DRAW CIRCLE AT nRow, nCol RADIUS nRadius
DRAW IMAGE cPicture AT nRow, nCol
END GRAPHICSAREA
CLEAR GRAPHICS AREA OF Form1 FROM nRow, nCol TO nRow, nCol
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: BOS TAURUS: Questions and Suggestions
Hi Marek,mol wrote:I have a question - I've read documentation of Bos Taurus, and it looks it is possible to create image file with this library. Am I right?
If yes, can you place a little sample presenting creating images?
I'm working on a little label maker and I want to build preview of label - it could be easy with BT...
Here leave you an example, I hope you find useful.
Best regards,
Claudio
- Attachments
-
- create_logo.rar
- (44.6 KiB) Downloaded 1332 times
Re: BOS TAURUS: Questions and Suggestions
As wonderful as simple!
It will be great supplement for label generator, which I built-in my billing application.
I'll try to prepare standalone working sample.
I found and used BT_BitmapSaveFile(hBitmap, cFileName)
Working fine, but, how to output generated image to png/jpg file?
Is it possible?
Second question: Is there a method to set horizontal and vertical DPI parameter?
Many thanks, Claudio!
It will be great supplement for label generator, which I built-in my billing application.
I'll try to prepare standalone working sample.
I found and used BT_BitmapSaveFile(hBitmap, cFileName)
Working fine, but, how to output generated image to png/jpg file?
Is it possible?
Second question: Is there a method to set horizontal and vertical DPI parameter?
Many thanks, Claudio!
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: BOS TAURUS: Questions and Suggestions
Hi Marek.mol wrote:It will be great supplement for label generator, which I built-in my billing application.
I'm glad you find it useful.
Please post here to see it.mol wrote:I'll try to prepare standalone working sample.
Very easy.mol wrote:One question: how to output generated image to png/jpg or bmp file?
BT_BitmapSaveFile (hBitmap, cFileName)
Save an image in format BMP (24 bpp) in the disk.
hBitmap: is a handle to the bitmap image.
cFileName: is the name of the file to save.
Best Regards,
Claudio.
- srvet_claudio
- Posts: 2193
- Joined: Thu Feb 25, 2010 8:43 pm
- Location: Uruguay
- Contact:
Re: BOS TAURUS: Questions and Suggestions
No, BT only saves images in BMP format (24 bpp), you would have to convert the final image into Windows Paint, etc.mol wrote: I found and used BT_BitmapSaveFile(hBitmap, cFileName)
Working fine, but, how to output generated image to png/jpg file?
Is it possible?
Again the answer is nomol wrote: Second question: Is there a method to set horizontal and vertical DPI parameter?
Regars,
Claudio.
Re: BOS TAURUS: Questions and Suggestions
THX again!
I'll try to find solution...
Marek
I'll try to find solution...
Marek
- Rathinagiri
- Posts: 5471
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: BOS TAURUS: Questions and Suggestions
Hi Marek,
I think you can use hbfimage library.
http://freeimage.sourceforge.net/features.html
These are the features.
I think you can use hbfimage library.
http://freeimage.sourceforge.net/features.html
These are the features.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: BOS TAURUS: Questions and Suggestions
I worry I'm not familiar with C language too ehough to use such a library