graphic "ghost"
Show older comments
I'm creating a object shape with 'fill' and then updating it's position on the screen with 'set'.
When I also use 'image' to insert bit mapped graphics, I think a bug appears.
pseudo code:
a=fill([x1,y1],...);
set(a,[x2,y2],...);
set(a,[x3,y3],...);
set(a,[x4,y4],...);
set(a,[x5,y5],...);
b=image(rand(20)*100,'AlphaData',0.5*ones(20))
set(a,[x6,y6],...);
set(a,[x7,y7],...);
set(a,[x8,y8],...);
set(a,[x9,y9],...);
delete(b);
% at this moment, and only briefly for about 0.1s(even with a pause after), the initial 'fill' graphic will appear at [x5,y5], the position where the 'image' was inserted on the axis. THIS ONLY HAPPENS if the 'image' have the 'AlphaData' channel set...
Is this a confirmed bug or am I doing something wrong?
Regards, Nuno
Accepted Answer
More Answers (1)
Nuno
on 4 May 2011
0 votes
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!