X2D - eXtended 2D

Developed or developing a new product in PureBasic? Tell the world about it.
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

Version 0.8 with a feature at least I waited very long for ;-)

DrawAlphaImage blends an image over the existing background. You can use a constant alpha-value or an Image Map. See the Helpfile for more information!
dontmailme
Enthusiast
Enthusiast
Posts: 537
Joined: Wed Oct 29, 2003 10:35 am

Post by dontmailme »

Works fine here ;)

Very nice !
Paid up PB User !
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

DrawAlphaImage is FANTASTIC!!! 8O I have done some tests and am very pleased with the results. I will mainly be using it for adding nice logos/icons to the user interfaces of a few apps which look nice no matter what colour people have set their windows too! :D Very nice work!

P.S. Check out this thread for an error (and bug) i found in one of the examples supplied: viewtopic.php?p=52647
--Kale

Image
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

Version 0.9
- Important: Changed X2D_AngleText() to X2D_Text. angle is now an optional parameter.
- Fixed a problem with the additional parameter in X2D_RingPie()
- Fixed: Couldn't display an angle of only one degree with X2D_RingPie()
- Added an example to X2D_SetHDC()
- Added several Debugger checks for catching illegal procedure calls.
- Added Function: X2D_SetTextAlign, X2D_GetTextAlign
spongehammer
User
User
Posts: 84
Joined: Sat Jul 19, 2003 6:45 pm
Location: UK

Post by spongehammer »

Hi freedimension,

what a great lib :D Thank you very much.

some of the sample code in the help file has a few errors though.

X2D_SetHDC(hDC.l)

line 33 reads SetHDC(0) instead of X2D_SetHDC(0)

X2D_CopyImageToMemory

line 67 reads SetGadgetState(#1, UseImage(1)) instead of

SetGadgetState(1, UseImage(1))

I can really make use of this lib... thanks again :D
I looked up 'paranoid' in the dictionary this morning.
It said, 'what do you want to know that for?'
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

spongehammer wrote:some of the sample code in the help file has a few errors though.
X2D_SetHDC(hDC.l)
line 33 reads SetHDC(0) instead of X2D_SetHDC(0)
I inserted this by hand when I found this command missing (resulting in a bug) in another program.
X2D_CopyImageToMemory
line 67 reads SetGadgetState(#1, UseImage(1)) instead of
SetGadgetState(1, UseImage(1))
thought I got rid of this one some time ago :oops:

Thank you for reporting, I will fix this ASAP
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

FIXED
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

Whenever I try to compile something using this library (with PB 3.91 Beta 1) I get the error:
The following PureLibrary is missing: TB_Debugger
Is this another new-linker issue perhapse?
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

No idea. El_Choni?
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Yes, I'm an idiot for haven't thinking of this. I'll fix TailBite so it includes the necessary code with each lib that uses TB_Debugger. Until then, you'll need the TB_Debugger lib in order to use the X2D lib in debugger mode.

Sorry again. Regards,
El_Choni
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

I wasn't using the debugger...?
I get the same error no matter how I try to compile... even to EXE...
:(
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

It'll be fixed in next version, Sunday or Monday. Sorry,
El_Choni
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

Thanks EC!
El_Choni
TailBite Expert
TailBite Expert
Posts: 1007
Joined: Fri Apr 25, 2003 6:09 pm
Location: Spain

Post by El_Choni »

Should be fixed now. Could you update TaiolBite from TBManager and see if it works ok with your lib?
El_Choni
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post by freedimension »

Do I need to have v3.91b installed or should it also work with 3.81?
Post Reply