Pasting selection

Someone just suggested that it would be cool if one could paste images
into Tux Paint. (e.g., in a web browser select “Copy Image”, and then
push some ‘Paste’ button in Tux Paint… or maybe even drag-n-drop)

How hard would it be to, platform-independently or otherwise, read a bitmap
from an OS’s clipboard and into an SDL surface?

(Googling for info on this right now, too :^) )

Thx!

-bill!–
bill at newbreedsoftware.com Hire me!
http://newbreedsoftware.com/bill/ http://newbreedsoftware.com/bill/resume/

Someone just suggested that it would be cool if one could paste images
into Tux Paint. (e.g., in a web browser select “Copy Image”, and then
push some ‘Paste’ button in Tux Paint… or maybe even drag-n-drop)

How hard would it be to, platform-independently or otherwise, read a bitmap
from an OS’s clipboard and into an SDL surface?

You mean like the scrap demo? :slight_smile:
http://www.libsdl.org/demos.php?order=name&category=any&completed=0&os=any&match_name=scrap&perpage=50

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment