Convert to Cursor

version (445 Bytes) by Richard Medlock
Converts image files to cursor CData.


Updated 28 Apr 2003

No License

Use a standard paint program like paint shop pro to edit your icons, save them in a MATLAB compatible format (bmp, png, jpeg, etc..)

Use White [RGB(255,255,255)] for areas you want white.

Use Black [RGB(0,0,0)] for areas you want black.

All other colors will be made transparent.


i = imread('mycursor.bmp');
CData = ConvertToCursor(i);

Cite As

Richard Medlock (2022). Convert to Cursor (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!