Thanks for your time....
Thats what I ended up using but if I understand right (still trying to get it right in my head, I dont learn things easy) that will allways make all the alpha in the dest bitmap 255?...right?...when what I wanted was the same sort of blend but retain the alpha of the dest....so I guess Ill have to make my own blend mode or a clone channel command to back it up and put it back (plus a clone channel command could come in handy later).
Really easily thanks to this....
http://www.eonclash.com/ViewProduct.php?ProductID=21
....I dont get half of what Im doing ;) but Ive got a GREAT little scripting thingy now that uses your library...pretty slow if you getpixel for a 1280x1024 pic but you hardly ever have to do that and if i do I just make a bit of Lazarus for it. Its been alot of fun, Im using it to make some scripts for making Chrome themes.
What Id really like tho is to see your library in something like this....
http://luaforge.net/projects/vclua/
..so it would be an actual Lua library, I didnt like any of the ones available and thats why I ended up going down this road (glad I did tho)...Ive got it to compile so now Ive just got to learn how it works a little better and Ill slip your stuff in (I hope, still have no idea how to handle multidimensional arrays).
Have Fun :P
Quotetry using SrcFactor: bfSrcAlpha and DestFactor: bfOneMinusSrcAlpha.
Thats what I ended up using but if I understand right (still trying to get it right in my head, I dont learn things easy) that will allways make all the alpha in the dest bitmap 255?...right?...when what I wanted was the same sort of blend but retain the alpha of the dest....so I guess Ill have to make my own blend mode or a clone channel command to back it up and put it back (plus a clone channel command could come in handy later).
QuoteBTW: How are you using Imaging in Lua?
Really easily thanks to this....
http://www.eonclash.com/ViewProduct.php?ProductID=21
....I dont get half of what Im doing ;) but Ive got a GREAT little scripting thingy now that uses your library...pretty slow if you getpixel for a 1280x1024 pic but you hardly ever have to do that and if i do I just make a bit of Lazarus for it. Its been alot of fun, Im using it to make some scripts for making Chrome themes.
What Id really like tho is to see your library in something like this....
http://luaforge.net/projects/vclua/
..so it would be an actual Lua library, I didnt like any of the ones available and thats why I ended up going down this road (glad I did tho)...Ive got it to compile so now Ive just got to learn how it works a little better and Ill slip your stuff in (I hope, still have no idea how to handle multidimensional arrays).
QuoteI'm going away now for a week or two so I can have a closer look after that.
Have Fun :P