Have you got a demo app you could post? Also a compatible desktop library for development would be useful. The present library needs to be added to the desktop for optimised compiling to work but the desktop crashes if you try to run it.
It looks like at the moment it only works for Form images. It would be nice if there was an AlphaBitmap class that drew on an internal bitmap and could open and blend images with alpha values. If it returned that internal image as a Value property it could then be used in conjunction with ImageLib and ImageLibEx bitmaps. I don't know if a bitmap format conversion would be needed or not - I'm not so hot on graphics stuff.
I suspect, but haven't tried, that it will need some modification to work when AutoScale compiled. http://www.b4x.com/forum/beta-versions/4207-autoscale-compilation-mode-external-libraries.html
Why not? It would be a shame if you didn't and you seem more than competent enough! I would have thought it would be easier on the desktop as the GDI+ stuff is exposed in .NET, so you don't need COM, and AlphaBlend is in gdi32.dll.As of now I don't think I'll be able to make a Desktop version, other than a dummy.
Why not? It would be a shame if you didn't and you seem more than competent enough! I would have thought it would be easier on the desktop as the GDI+ stuff is exposed in .NET, so you don't need COM, and AlphaBlend is in gdi32.dll.
Good work ,eww245! I'm hope you don't throw it!
Without sample i can't understand...this lib can load Alpha Transparented images from png\ico and draw it (now on form)?
oo,It is a really good work!many thanks!
maybe you create a dummy(or not) lib for PC?some of my projects work on Desctop and on device.
Nested classes are still not supported.I don't know if this is still valid
???but even if it is I don't really understand why the compiler is complaining as "+" is valid as part of the type name for a nested class
I've been Googling
class Outer
{
class Inner
{
class FurtherIn
{
{
}
}
i'm try to use Alpha.dll with Sprites.dll (i want a AlphaTransparented sprites) but it doesn't work(( maybe i do some wrong?please see my sample!
and when i'm try to compil source with Alpha.dll i have error
Hello eww24)
i'm play with 'AlphaSprite' sample...in my real app i have gamewindow larger than form. and when i'm try to load all background image to 'alpha' object i have error (i'm think it is becose size of image larger then size of form.yes?).loading only a part of image is not a good idia.
can you help me? maybe you add "GetImageSectio" method to 'AlphaImage' object or it is not real?
a.GetImageSection (sprite.NextX, sprite.NextY, 24, 24)
ai.DrawBitmap (a.ImageSection, 0, 0, 24, 24)
ai.DrawImage (AppPath&"\w.png", 0, 0, 24,24)
sprite.LoadBitmap(ai.Image, 1, 24, 24, 1)
gw.Tick
For i = 0 to 7
a.GetImageSection (sprite.NextX, sprite.NextY, 24, 24)
ai.DrawBitmap (a.ImageSection, 0, 0, 24, 24)
' ai.DrawImage (AppPath&"\w.png", 0, 0, 24, 24)
ai.Rotate(90)
sprite.LoadBitmap(ai.Image, 1, 24, 24, 1)
gw.Tick
Next
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?