Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Anmol Anand
RE: adding graph paper to background [ reply ]  
2008-08-29 13:09
Thanks Tim ,
your suggestions helped me a lot and I found compositing my pictures very easy with the help of tutorials which you had listed .



By: Tim Hunter
RE: adding graph paper to background [ reply ]  
2008-08-15 13:44
Take a look at the Draw class examples here: http://studio.imagemagick.org/RMagick/doc/draw.html. A lot of them use a graph paper background produced by the HatchFill class (http://studio.imagemagick.org/RMagick/doc/struct.html#fill). You can write your own fill class so if you don't like HatchFill you can easily code up one that suits you.

The process of combining two images is called alpha compositing, which RMagick supports via the Image#composite method (http://studio.imagemagick.org/RMagick/doc/image1.html#composite). Here's an introductory tutorial about compositing: http://rmagick.rubyforge.org/src_over.html. Here's a follow-up tutorial: http://rmagick.rubyforge.org/web2/web2.html.

Good luck! Please post any follow-up questions you have.

By: Anmol Anand
adding graph paper to background [ reply ]  
2008-08-15 03:25
I have written a program in which we first scale the picture to desired size and then crop the particular portion which we want . The portion which has to be cropped is taken as user input and that is why I want to add a graph or some grid which can simplify co-ordinate specification for users .

Please suggest a solution .

Also, please tell me some method by which we can add one picture to the background of another picture .

Thank you :)