Board index » cppbuilder » Re: GDI+
smartdude80
![]() CBuilder Developer |
smartdude80
![]() CBuilder Developer |
Re: GDI+2006-04-19 06:26:30 AM cppbuilder35 QuoteGdiplus::Image image(L"your_image.jpg"); image now? |
Michel Leunen
![]() CBuilder Developer |
2006-04-20 02:18:17 AM
Re:Re: GDI+
smartdude80 wrote:
QuoteLooks like you declared the object 'graphics' with 'image' as the parameter QuoteHow can you see the Canvas->handle to the constructor. So in this case, you need two Graphics object. One associated with the screen and othe other associated with the image. You asked how to do it without using a bitmap. I showed you one way but usually the image is drawn on a bitmap and then the bitmap is drawn on the screen. Michel -- ---------------------------------------- Michel Leunen mailto: see my homepage. C++Builder, BCC5.5.1 Web site: www.leunen.com/ ---------------------------------------- |
smartdude80
![]() CBuilder Developer |
2006-04-20 03:36:30 AM
Re:Re: GDI+QuoteTo show the image on the screen, you need a Graphic object and associate access screen memory with lockbits(), unlockbits() which may be usefull down the road) Im reading a bcb journal article on GDI+. Its in bcbjournal.org/bcbj_vol8_num6.pdf. its got good information but his aproach is a little different. He's got some sort of error checking system (and other things)but can't get any more information about it. {smallsort} |
Laurent
![]() CBuilder Developer |
2007-04-19 04:56:23 PM
Re:Re: GDI+
How can i make a RASTER opération like XOR in GDI+.
Because with GDI we can use Set_ROP2(..) function. I would like to draw a {*word*221} band rectangle. Thanks. |
s.pierre-yves
![]() CBuilder Developer |
2008-03-31 12:42:59 AM
Re:Re: GDI+
hello all
i have added gdiplus.lib to my project, defined STRICT etc., the project compiles. ok then i include gdiplus.h in the project source and add initialization in the winmain, the project compiles. ok then i include gdiplus.h in any form unit, the project compiles. ok now i add a new empty unit (not form), and in the header i add vcl.h followed by gdiplus.h result : tons of compile errors in the gdi+ headers, firsts being errors E2075 on incorrect project options redefinitions more and worst : removing this cpp unit from the project, so returning to the last compilable state, it dont compile any more ! still same errors ! what's bad ? i m sure it s a stupid trick but i cant get it s.py |