| View previous topic :: View next topic |
| Author |
Message |
Charles B Guest
|
Posted: Mon Mar 26, 2007 2:37 pm Post subject: GDI+ in TDrawGrid? |
|
|
I'd like to use GDI+ antialiased functions in a TDrawgrid. Is this possible?
or does GDI+ require a different Canvas meaning I would need a new
TDrawGrid?
Also, which GDI+ components would you recommend?
Many thanks,
CB |
|
| Back to top |
|
 |
GrandmasterB Guest
|
Posted: Mon Mar 26, 2007 11:55 pm Post subject: Re: GDI+ in TDrawGrid? |
|
|
"Charles B" <x (AT) y (DOT) z> wrote in message news:46079452 (AT) newsgroups (DOT) borland.com...
| Quote: | I'd like to use GDI+ antialiased functions in a TDrawgrid. Is this
possible? or does GDI+ require a different Canvas meaning I would need a
new TDrawGrid?
|
Yes, there's no problem doing this. Just use gdi+ in the paint routines
instead of normal gdi commands. Create a GDI+ Graphics object with the
canvas's handle (which is the HDC). |
|
| Back to top |
|
 |
Herre de Jonge Guest
|
Posted: Wed Mar 28, 2007 4:38 pm Post subject: Re: GDI+ in TDrawGrid? |
|
|
Charles,
Just download the GDI+ port from
http://www.progdigy.com/modules.php?name=gdiplus
You can start drawing on a Delphi canvas (TCanvas) by creating
a TGPGraphics objects based on this canvas:
gfx := TGPGraphics.Create(Canvas.Handle);
Try to find gdicpp.chm, because it's quite nice to have this help
file as a reference.
Take care,
Herre
Charles B wrote:
| Quote: | I'd like to use GDI+ antialiased functions in a TDrawgrid. Is this possible?
or does GDI+ require a different Canvas meaning I would need a new
TDrawGrid?
Also, which GDI+ components would you recommend? |
|
|
| Back to top |
|
 |
Charles B Guest
|
Posted: Mon Apr 02, 2007 1:35 pm Post subject: Re: GDI+ in TDrawGrid? |
|
|
| Thanks guys! |
|
| Back to top |
|
 |
Charles B Guest
|
Posted: Mon Apr 02, 2007 2:46 pm Post subject: Re: GDI+ in TDrawGrid? |
|
|
"Herre de Jonge" <hdejonge (AT) ravelin (DOT) nl> wrote in message
news:460a53ba$1 (AT) newsgroups (DOT) borland.com...
Thanks, but that doesn't seem to compile with D2005 (maybe the
Directdraw.pas needs updating) and it is GPL/MPL stuff (I'm doing a
comercial development). Any freeware stuff you know of?
CB |
|
| Back to top |
|
 |
GrandmasterB Guest
|
Posted: Tue Apr 03, 2007 1:28 am Post subject: Re: GDI+ in TDrawGrid? |
|
|
"Charles B" <x (AT) y (DOT) z> wrote in message news:4610d0f7 (AT) newsgroups (DOT) borland.com...
| Quote: | Thanks, but that doesn't seem to compile with D2005 (maybe the
Directdraw.pas needs updating) and it is GPL/MPL stuff (I'm doing a
comercial development). Any freeware stuff you know of?
|
Look for the Jedi version of the gdi+ headers. Those compiled ok under
turbodelphi for me.
As for the GPL thing, that I cant help you with. |
|
| Back to top |
|
 |
JD Guest
|
Posted: Sun Apr 08, 2007 8:11 am Post subject: Re: GDI+ in TDrawGrid? |
|
|
"Charles B" <x (AT) y (DOT) z> wrote:
| Quote: |
I'd like to use GDI+ antialiased functions in a TDrawgrid.
Is this possible?
|
Yes but I question if it necessary for you.
| Quote: | or does GDI+ require a different Canvas meaning I would need
a new TDrawGrid?
|
An HDC is an HDC and that's all that GDI+ requires.
| Quote: | Also, which GDI+ components would you recommend?
|
Not a one. Not only because I don't know of any reliable
components but also because I don't know what your needs
are. I would suggest that you explain in detail what it is
that you want to accomplish.
In addition, google for Michel Leunen or visit his sight at:
http://www.leunen.com/
He's got the best grip on GDI+ that I've seen (even if it is C++).
~ JD |
|
| Back to top |
|
 |
Eddie Lotter Guest
|
Posted: Sun Apr 08, 2007 8:24 pm Post subject: Re: GDI+ in TDrawGrid? |
|
|
"JD" <nospam (AT) nospam (DOT) com> wrote in message
news:46187aa5$1 (AT) newsgroups (DOT) borland.com...
| Quote: | [...]
In addition, google for Michel Leunen or visit his sight at:
http://www.leunen.com/
He's got the best grip on GDI+ that I've seen (even if it is C++).
~ JD
|
Also have a look at Bob Powell's GDI+ FAQ. It has examples in VB and C#.
http://www.bobpowell.net/faqmain.htm
Cheers
Eddie |
|
| Back to top |
|
 |
Charles B Guest
|
Posted: Wed Apr 11, 2007 4:12 pm Post subject: Re: GDI+ in TDrawGrid? |
|
|
"JD" <nospam (AT) nospam (DOT) com> wrote in message
news:46187aa5$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
"Charles B" <x (AT) y (DOT) z> wrote:
I'd like to use GDI+ antialiased functions in a TDrawgrid.
Is this possible?
Yes but I question if it necessary for you.
|
Can I draw antialiased circles an easier way?
| Quote: |
or does GDI+ require a different Canvas meaning I would need
a new TDrawGrid?
An HDC is an HDC and that's all that GDI+ requires.
|
OK
| Quote: |
Also, which GDI+ components would you recommend?
Not a one. Not only because I don't know of any reliable
components but also because I don't know what your needs
are. I would suggest that you explain in detail what it is
that you want to accomplish.
|
A TDrawGrid with antialiased circles in each cell.
Thanks,
CB |
|
| Back to top |
|
 |
|