PureBasic 4.40 beta2 released.
Posted: Tue Aug 18, 2009 12:11 am
Hello again,
The beta2 is out with a lot of beta1 bugs fixed (not all yet), and a few more changes too:
If you missed the Beta1 announcement, read more here:
http://www.purebasic.fr/english/viewtop ... 524#295524
The #PB_2DDrawing_CustomFilter redirects drawing operations to a callback. It can decide how the source color is put over the target color for every pixel. This mode can be combined with #PB_2DDrawing_Gradient. The callback looks like this:
As usual, the beta can be found on your user account.
Have fun
The beta2 is out with a lot of beta1 bugs fixed (not all yet), and a few more changes too:
Code: Select all
- Added UsePostgreSQLDatabase()
- Changed FillMemory() to FillMemory(*Memory, Size [, Value [, Type]])
- Removed the "UserData" parameter from CustomGradient() and its callback (to fit the other PB callbacks)
- Added #PB_2DDrawing_CustomFilter drawing mode (ImageOutput only)
- Added CustomFilterCallback()
- Added AlphaBlend(Color1, Color2) - blend two 32bit colors
http://www.purebasic.fr/english/viewtop ... 524#295524
The #PB_2DDrawing_CustomFilter redirects drawing operations to a callback. It can decide how the source color is put over the target color for every pixel. This mode can be combined with #PB_2DDrawing_Gradient. The callback looks like this:
Code: Select all
Procedure FilterCallback(x, y, SourceColor, TargetColor)
ProcedureReturn AlphaBlend(SourceColor, TargetColor) ; this would emulate the #PB_2DDrawing_AlphaBlend mode
EndProcedure
Have fun
