Rank: 361491 based on 0 downloads (last 30 days) and 0 file submitted
photo

Admin

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Admin
Updated File Comments Rating
23 Oct 2010 Myaa - My Anti-Alias for Matlab Better looking Matlab figures with anti-aliasing! Author: Anders Brun

To add a few code , it will improve much.

1. Double resolution of temp PNG

185# print(self.source_fig,['-r',num2str(2*screen_DPI*self.K(1))], '-dpng', tempfile);

2. Then, get handle of image in figure

231# hi = image(raw_lowres);
... hi = image(...
...

3. Save image matrix

290# elseif nargout == 2
varargout(1) = {fig};
varargout(2) = {get(hi, 'CData')};

%%%%%%%%%%%%%

Test program

surf(peaks(60) ,'FaceColor','interp', 'FaceAlpha',0.8,'EdgeAlpha',0.8, 'LineWidth', 0.2);

set(gcf, 'Color', [1,1,1]);
[f1, cdata] = myaa([4, 2]);

imwrite(cdata, 'runtest.png', 'png');

winopen('runtest.png');

It's high resolution picture !

Contact us