简体   繁体   中英

How to convert *.cur (Windows cursor) stream to bitmap?

It's easy to convert from cur-file to bitmap, using the LoadCursorFromFile API call and calling DrawIcon(..., hCursor) on that bitmap.

But how can I load it from stream without too much handcoding and convert into TBitmap?

There is an MSDN library article that describes the .cur and .ico file formats in great detail. It's pretty easy – I wrote some Delphi code to read .ico files not so long ago using this article as my reference.

使用Kicon

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM