BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GDI+ in TDrawGrid?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Charles B
Guest





PostPosted: Mon Mar 26, 2007 2:37 pm    Post subject: GDI+ in TDrawGrid? Reply with 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?

Many thanks,
CB
Back to top
GrandmasterB
Guest





PostPosted: Mon Mar 26, 2007 11:55 pm    Post subject: Re: GDI+ in TDrawGrid? Reply with quote



"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





PostPosted: Wed Mar 28, 2007 4:38 pm    Post subject: Re: GDI+ in TDrawGrid? Reply with quote



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





PostPosted: Mon Apr 02, 2007 1:35 pm    Post subject: Re: GDI+ in TDrawGrid? Reply with quote

Thanks guys!
Back to top
Charles B
Guest





PostPosted: Mon Apr 02, 2007 2:46 pm    Post subject: Re: GDI+ in TDrawGrid? Reply with quote

"Herre de Jonge" <hdejonge (AT) ravelin (DOT) nl> wrote in message
news:460a53ba$1 (AT) newsgroups (DOT) borland.com...
Quote:
Charles,

Just download the GDI+ port from
http://www.progdigy.com/modules.php?name=gdiplus


Also, which GDI+ components would you recommend?

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





PostPosted: Tue Apr 03, 2007 1:28 am    Post subject: Re: GDI+ in TDrawGrid? Reply with quote

"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





PostPosted: Sun Apr 08, 2007 8:11 am    Post subject: Re: GDI+ in TDrawGrid? Reply with quote

"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





PostPosted: Sun Apr 08, 2007 8:24 pm    Post subject: Re: GDI+ in TDrawGrid? Reply with quote

"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





PostPosted: Wed Apr 11, 2007 4:12 pm    Post subject: Re: GDI+ in TDrawGrid? Reply with quote

"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.