Reputation: 1
I was looking to have the mouse pointer as fullcross instead of arrow when I move it on top of my image. Looks like MATLAB doesnt support 'fullcross'. To be more specific, I would like the pointer to be a fullcross but a hole at the intersection(sort of able to look at the image at the intersection).
Is there an easier way to do this?
Thanks, Bala
Upvotes: 0
Views: 621
Reputation: 13945
I think you're looking for the undocumented Pointer
property of figures (look here for a complete list). You can also customize mouse pointer using the undocumented function setptr()
.
Anyhow here is what I think you mean by fullcross (fullcrosshair according to Matlab):
clear
clc
close all
A = imread('peppers.png');
hFig = figure;
imshow(A)
set(hFig, 'Pointer', 'fullcrosshair');
Output:
Upvotes: 1