Spade-Editor / Spade

Cross-platform raster graphics editor inspired by Paint.NET
GNU General Public License v3.0
41 stars 10 forks source link

Clipboard functions #50

Closed HeroesGrave closed 10 years ago

HeroesGrave commented 10 years ago

This covers #45.

Basically we just need implement do cut, copy and paste on the selection.

Longor1996 commented 10 years ago

Copy/Paste just needs to copy the currently selected piece of the image into System-Clipboard as a Image-Object.

Nothing more.

But if you go and look at Paint.NET, you can see that, if you copy a piece of an image, then paste it into another image, that piece will keep it's selection with it.

I don't know how to do that. There has to be a way to store Meta-Data in the Image-Object that get's stored in the clipboard.

HeroesGrave commented 10 years ago

But if you go and look at Paint.NET, you can see that, if you copy a piece of an image, then paste it into another image, that piece will keep it's selection with it.

I don't quite understand. Could you explain further?

Longor1996 commented 10 years ago

If you go and select a circular piece of an Image in Paint.NET, then copy it, take another image, then paste the piece into that. The pasted in piece will keep its selection with it, thus only replacing a part of the image it has been pasted into.

Understood it now? (I am tired, can't describe things good)

HeroesGrave commented 10 years ago

Yep.

I'll just make it paste into the selection, and that should work fine.