Code covered by the BSD License  

Highlights from
POINTEREDITOR

5.0

5.0 | 1 rating Rate this file 7 Downloads (last 30 days) File Size: 6.32 KB File ID: #9895
image thumbnail

POINTEREDITOR

by Jiro Doke

 

06 Feb 2006 (Updated 28 Dec 2009)

A GUI for creating custom pointers.

| Watch this File

File Information
Description

POINTEREDITOR opens a GUI for creating custom PointerShapeCData.

PointerShapeCData must be a 16-by-16 matrix that defines the pointer using 3 values (black, white, transparent). The editor allows you to create the pointer by clicking on pixels (left click, right click, shift+left click, respectively). You can also click and drag to color continuous pixels. Closing the editor via the close button cancels the changes.

M = POINTEREDITOR returns the CData matrix. To incorporate the Cdata in your m-file, copy and paste the output of the matrix. See examples in this code.

M = POINTEREDITOR(C) accepts a 16-by-16 CData matrix.

The mouse click interface is designed to be used in MS-Windows environment. In other platforms, they correspond to 'Normal', 'Alternate', and 'Extend' SelectionType, respectively.

The GUI includes a few UI control buttons at the top.
  All Black - Change all pixels to black.
  All White - Change all pixels to white.
  All Transp - Change all pixels to transparent.
  Test - Test the current pointer. Press the button again or click anywhere in the window to switch back to arrow pointer.
  Done! - Exit editor.
  ? - Help window.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Simplified management of figure pointer property

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
25 Aug 2006 John D'Errico

Well done.

Please login to add a comment or rating.
Updates
07 Feb 2006

Allow click and drag for continuous pixel selection. Acknowledge J

08 Feb 2006

Allow passing in of a CData matrix. Remove outputing of matrix on screen, because one can get that from the actual matrix.

06 Mar 2006

Added bucket fill feature, UNDO feature, and cursor previews with various backgrounds.

28 Dec 2009

Minor change in HELP text, and license update.

Tag Activity for this File
Tag Applied By Date/Time
gui tools Jiro Doke 22 Oct 2008 08:14:41
example Jiro Doke 22 Oct 2008 08:14:41
pointer Jiro Doke 22 Oct 2008 08:14:41
cdata Jiro Doke 22 Oct 2008 08:14:41
gui Jiro Doke 22 Oct 2008 08:14:41
editor Jiro Doke 22 Oct 2008 08:14:41
icon Jiro Doke 22 Oct 2008 08:14:41

Contact us at files@mathworks.com