Cleanup of ColorMatrix & ImageAttribute code usage

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2514 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-03-05 12:07:48 +00:00
parent 8b5578ea2c
commit 3361873fe7
2 changed files with 126 additions and 99 deletions

View file

@ -213,7 +213,17 @@ namespace GreenshotPlugin.Core {
/// <summary>
/// Factory for creating a FastBitmap as a destination for the source
/// </summary>
/// <param name="source">Bitmap to access</param>
/// <param name="source">Bitmap to clone</param>
/// <returns>IFastBitmap</returns>
public static IFastBitmap CreateCloneOf(Image source) {
return CreateCloneOf(source, source.PixelFormat, Rectangle.Empty);
}
/// <summary>
/// Factory for creating a FastBitmap as a destination for the source
/// </summary>
/// <param name="source">Bitmap to clone</param>
/// <param name="pixelFormat">new Pixelformat</param>
/// <returns>IFastBitmap</returns>
public static IFastBitmap CreateCloneOf(Image source, PixelFormat pixelFormat) {
return CreateCloneOf(source, pixelFormat, Rectangle.Empty);
@ -221,7 +231,7 @@ namespace GreenshotPlugin.Core {
/// <summary>
/// Factory for creating a FastBitmap as a destination for the source
/// </summary>
/// <param name="source">Bitmap to access</param>
/// <param name="source">Bitmap to clone</param>
/// <param name="area">Area of the bitmap to access, can be Rectangle.Empty for the whole</param>
/// <returns>IFastBitmap</returns>
public static IFastBitmap CreateCloneOf(Image source, Rectangle area) {
@ -231,7 +241,7 @@ namespace GreenshotPlugin.Core {
/// <summary>
/// Factory for creating a FastBitmap as a destination for the source
/// </summary>
/// <param name="source">Bitmap to access</param>
/// <param name="source">Bitmap to clone</param>
/// <param name="pixelFormat">Pixelformat of the cloned bitmap</param>
/// <param name="area">Area of the bitmap to access, can be Rectangle.Empty for the whole</param>
/// <returns>IFastBitmap</returns>
@ -242,7 +252,6 @@ namespace GreenshotPlugin.Core {
return fastBitmap;
}
/// <summary>
/// Factory for creating a FastBitmap as a destination
/// </summary>