altmany / altmany/export_fig

Images drawn by imagesc with background transparency lose bg transparency on export

Ouverte
#123 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
MATLAB
Étoiles
1.4k
Forks
366
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

A sort of minimum working example,

``` Matlab
I = imread('file.jpg');
alpha = I(:,:,1) > 235 & I(:,:,2) > 235 & I(:,:,3) > 235; %white->transparent
pic = imagesc(I);
pic.AlphaData = ~alpha;
export_fig(fig,output,'-nocrop','-transparent')
```

The result will have the original white background, rather than the transparent background hacked by setting the alphadata property.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.