Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

Is it possible to have larger (than 16-by-16) pointer size?

Asked by Q Liao on 27 Jun 2013

Hi all,

I'm designing a drawing program in matlab (just imagine a simplified Photoshop), where the paintbrush can have larger than 16-by-16 size. I'd like to customize the pointer such that it has exactly the same size and same shape as the paintbrush (e.g. circle). Right now, I can change the shape by customizing PointershapeCData:

set(gcf,'Pointer','custom','PointerShapeCData',cdata,'PointerShapeHotSpot',[9 9]);

But the cdata is limited to 16-by-16, otherwise there will be a error. It seems matlab doesn't support any other sizes.

Is there anyway that I can make the pointer larger than 16-by-16?

Thank you very much in advance!

Best,

Leon

0 Comments

Q Liao

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 27 Jun 2013
Accepted answer

This is a limitation in the operating systems that support MATLAB, that the fast (hardware) cursor is limited to 16 x 16. To get cursors with larger dimensions they have to be drawn in software.

2 Comments

Q Liao on 27 Jun 2013

Thanks! But how come the fullcross cursor can be larger than 16x16? see the following screenshot. Is it possible to modify the behavior of this type of cursor such that it becomes a larger circle? http://i.imgur.com/6cBAV9K.png

Walter Roberson on 27 Jun 2013

fullcross goes through a slightly different hardware path.

The hardware cursors often go through a separate hardware bit-plane so that they are drawn without damaging the contents of the frame buffer. For speed (and cost originally) that hardware is not very flexible

Walter Roberson

Contact us