FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour GDI+
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
GDI+
Posted: Wed Sep 21, 2011 10:58 PM
I will test GDI+ as described in:
http://forums.fivetechsupport.com/viewtopic.php?p=63850
But many errors are shown!
Antonio, please test your example..
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: GDI+
Posted: Thu Sep 22, 2011 05:01 AM
Günther,

That example requires to compile using C++ mode. Add -P in samples\buildh.bat :

%bcdir%\bin\bcc32 -M -c -P @b32.bc

also you have to add this line to the example:

Code (fw): Select all Collapse
#include <hbapi.h> 
#include <windows.h>
#include <Gdiplus.h>

using namespace Gdiplus;  // this one!

GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR


And you have to link gdiplus.lib

With those changes it properly builds :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: GDI+
Posted: Thu Sep 22, 2011 06:37 AM

Thanks Antonio!
I found, fivewin should make some substantially routines (lines, rectangles, ellipses, etc.) also with GDI+ as standard! The quality from graphics are much better with antialiasing and so on.

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: GDI+
Posted: Thu Sep 22, 2011 07:34 AM

Günther,

Unless there is a real need for it, my understanding is that GDI+ is an important overload for an application and thus we should avoid it.

I may be wrong, as I have never performed speed tests about this, but I think that a simple API function has to perform much faster that calling a whole OLE objects layer :-)

Also, the less our applications depend from external modules (DLLs, OLE, etc) the more robust applications that we get. FWH applications run on all Windows, have no need for lots of DLLs (like VB i.e.) and that means rock solid apps :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: GDI+
Posted: Thu Sep 22, 2011 07:43 AM

Antonio, you are right!
But I will do some tests with GDI+ and report here.
Greetings from Austria.
Antonio, if you visit Otto, please inform me also. My home are only 100km far from Otto! :)

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: GDI+
Posted: Thu Sep 22, 2011 08:41 PM

Günther,

Surely we will meet very soon! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: GDI+
Posted: Thu Sep 22, 2011 08:55 PM

Antonio, this are great news!!

For the C-wrapper-routines i write for GDI+ :
Where are the function HB_ISNUM()? I found only ISNUM(). The same?

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: GDI+
Posted: Thu Sep 22, 2011 09:00 PM

Its the same function, for Harbour HB_ISNUM() and for xHarbour ISNUM()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: GDI+
Posted: Mon Sep 26, 2011 08:38 AM
A test-exe to show some GDI+....
http://byte-one.com/gdiplus_test.exe
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 1515
Joined: Thu Oct 30, 2008 02:37 PM
Re: GDI+
Posted: Mon Sep 26, 2011 09:16 AM

Mr. byte-one,

would do you like to see mrftools.lib (espectaculars effeccts) from antolin ?

viewtopic.php?f=6t=18292hilit=mrftool

Regards

&&

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: GDI+
Posted: Mon Sep 26, 2011 09:19 AM

Gunther,

Would you mind to share its source code ?

I am writting this from an iPad so no way to run the Windows EXE but I can review its source code :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: GDI+
Posted: Mon Sep 26, 2011 03:43 PM

Antonio, yes, i send to you the code if it ok!
But at moment i need your help:
xharbour-parameter array {{x,y},{x,y},....} to c++-array with same structur

Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 883
Joined: Thu Dec 24, 2009 12:46 AM
Re: GDI+
Posted: Mon Sep 26, 2011 04:17 PM
Nice painting effects...

Antonio so you can see Günther's program:



EDITED:
App is EXE self contained, 1.34 MB and it runs smoothly on a Core i5 with 4MB Ram

=====>

Bayron Landaverry
xBasePHP.com
(215)2226600 Philadelphia,PA, USA
MayaBuilders@gMail.com
Guatemala

FWH25.06--Harbour 3.0.0--BCC7.7--UEstudio 10.10
Windows 10

FiveWin, One line of code and it's done...

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: GDI+
Posted: Mon Sep 26, 2011 04:48 PM
byte-one wrote:Antonio, yes, i send to you the code if it ok!
But at moment i need your help:
xharbour-parameter array {{x,y},{x,y},....} to c++-array with same structur


Günther,

How many elements the array has ? Is it known in advance ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
Re: GDI+
Posted: Mon Sep 26, 2011 09:39 PM
Antonio,
How many elements the array has ? Is it known in advance ?

This are coordinate-points {{x,y},{x,y},....} nested in a array and the quantity from this points are known from side of (x)harbour.
Release from memory after???
Regards,
Günther
---------------------------------
office@byte-one.com