Saving an image file
Saving an image file
(OP)
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
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





RE: Saving an image file
The syntax is something like:
print myfile -dbitmap
print myfile -djpeg
or substitute another clever filename for myfile.