Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • 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

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
 
Replies continue below

Recommended for you

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