Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving an image file

  • Thread starter Thread starter -
  • Start date Start date
Status
Not open for further replies.

Guest
hi!
i have an image file which i load using imshow. then i draw some lines on the figure and save it. the problems is that i cannot save the edited image. how do i do that?

the command i use is something like this:

figure,imshow(imagefile);
line(x(:,1),y(:,2),'Linewidth',[1],'Color','k');

i have tried using saveas but it capture the whole GUI image, which i do not want. i only want the image to be save.

Can anyone help?

thank you very much
 
The print command has some options for saving to graphics file. I use it all the time with plots (I'm not sure if it'll work with what you're doing.

The syntax is something like:

print myfile -dbitmap
print myfile -djpeg

or substitute another clever filename for myfile.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top