• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

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 - sofakng

1
Help & Questions / Two quick questions...
27 November 2007, 16:49:03
I have two quick questions...

1) Can I draw a image rotated on top of another image at any angle?  ...or am I forced to use only multiplies of 90 degrees?  (eg. I'd like to start with a small image, rotate it 29 degrees and then draw it on top of another image).  If I'm forced to use 90 degree angles, can I somehow work around that?

2) Are there any collision detection methods?  For example, if I have two images and two positions, does this imaging library provide any methods for checking if any pixels overlap?  (eg. non-alpha pixels)

Thanks!
2
I'd really like it to support alpha blending...

(eg. if I draw an image on top of another image, I'd like to set the blending just like in DirectX)

This should be really easy to implement (right?).  It seems like all that needs to be done is add/subtract/multiply the pixels between the source and destination with the given blending operation...
3
I'd like to create a polygon (convex or concave, both cases!) and then fill the inside of the polygon with an image.

Ideally, I'd like the image to optionally repeat if the polygon is bigger than the provided image.

Can anybody help me out with this or at least point me in the right direction of which functions I should be using?

Thanks!!!
4
Let's say I want to draw an ARGB image on top of an existing ARGB image.

Can I alpha-blend them together?

Thanks!

- John
5
That's perfect, thank you!

The circle in your image looks a bit white though...

Did you change the RGB values as well as the alpha?
6
Thanks for your help!!

Quote from: Galfar on 31 August 2007, 20:16:24
1) Do you need it working for all data formats or just for one like A8R8G8B8? And do you need it filled or just outlined?


I just need it to work for A8R8G8B8.  (If I load a PNG or JPG, I can convert whatever format it's currently in to A8R8G8B8)

Basically all I'm doing in my program is creating A8R8G8B8 textures to be converted into D3D textures so all I need is A8R8G8B8 support, I think.

Also, I'd like to be able to draw alpha squares and rectangles if possible.  (eg. change only the alpha values in an A8R8G8B8 image in a square, rectangle, or circle/ellipse shape)

Thanks!!!
SMF spam blocked by CleanTalk