mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 10:47:02 -07:00
Changed code for the Clipboard and changed a lot of "Bitmap" code to work on images, this might give problems but if these are solved we have better support for MetaFiles. This made it possible to remove the MetafileContainer, which is replaced by the ImageContainer (which is the BitmapContainer modified). The clipboard code now knows more ways to load images from the clipboard!
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2398 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
b7a604d93b
commit
f627ce5dd0
15 changed files with 301 additions and 382 deletions
|
@ -103,8 +103,8 @@ namespace Greenshot.Plugin.Drawing {
|
|||
void FitToText();
|
||||
}
|
||||
|
||||
public interface IBitmapContainer: IDrawableContainer {
|
||||
Bitmap Bitmap {
|
||||
public interface IImageContainer: IDrawableContainer {
|
||||
Image Image {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
|
|
@ -110,14 +110,12 @@ namespace Greenshot.Plugin {
|
|||
/// <param name="fillColor">Color of background (e.g. Color.Transparent)</param>
|
||||
ITextContainer AddTextContainer(string text, HorizontalAlignment horizontalAlignment, VerticalAlignment verticalAlignment, FontFamily family, float size, bool italic, bool bold, bool shadow, int borderSize, Color color, Color fillColor);
|
||||
|
||||
IBitmapContainer AddBitmapContainer(Bitmap bitmap, int x, int y);
|
||||
IImageContainer AddImageContainer(Image image, int x, int y);
|
||||
ICursorContainer AddCursorContainer(Cursor cursor, int x, int y);
|
||||
IIconContainer AddIconContainer(Icon icon, int x, int y);
|
||||
IMetafileContainer AddMetafileContainer(Metafile metafile, int x, int y);
|
||||
IBitmapContainer AddBitmapContainer(string filename, int x, int y);
|
||||
IImageContainer AddImageContainer(string filename, int x, int y);
|
||||
ICursorContainer AddCursorContainer(string filename, int x, int y);
|
||||
IIconContainer AddIconContainer(string filename, int x, int y);
|
||||
IMetafileContainer AddMetafileContainer(string filename, int x, int y);
|
||||
long SaveElementsToStream(Stream stream);
|
||||
void LoadElementsFromStream(Stream stream);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue