• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 
22 November 2024, 03:20:18

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - PAEz

1
Thanks for your time....

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
2
Im trying to use StretchDrawBlend and its prolly just me but I cant figure how to use it.
I want to mix an image with another image so that the alpha of the second image is preserved and the first image is mixed with it according to its alpha, I thought it would be this....
MaskCanvas:StretchDrawBlend( 0,0,Mask.Width-1,Mask.Height-1,
                   ToolbarCanvas,0,0,Toolbar.Width,Toolbar.Height,
                   bfSrcAlpha,bfDstAlpha,rfBicubic )
Sorry bout the strange notation, Im using it in Lua.
Heres the image Im using as the mask...
http://img205.imageshack.us/img205/6765/toolbarmask.png
...If I fill the red channel ( MaskCanvas:FillChannel(ChannelRed,255) ) I seem to get what Id expect but not if its black?


Also while Im here Ellipse doesnt honour penMode clear.
3
I kinda hoped that ImagingJpegQuality would update if I opened a jpeg file but it doesnt and Ive looked around but cant figure it.
So how can I find out what quality an image is using after I load it?
I know how to set it (nice and easy) before a save. but Id like it to match the original if the user doesnt pick a different setting.
SMF spam blocked by CleanTalk