How can i add one image into another

4 views (last 30 days)
Alberto
Alberto on 25 Mar 2013
I have to do a program which the user select by mouse a music note, after this, the user will clic into a empty music partiture to add the selection note to the partiture. At the end, the user will save the finish image.
I don`t know how can i add the note image into the empty partiture image in a specific position.
Thank you very much in advance.

Answers (1)

Walter Roberson
Walter Roberson on 25 Mar 2013
new_image = original_image;
new_image( newrow : newrow + size(noteimage,1) - 1, newcol : newcol + size(noteimage,2) - 1, :) = noteimage;

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!