mirror of
https://github.com/greenshot/greenshot
synced 2025-07-14 17:13:44 -07:00
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:
parent
8b5578ea2c
commit
3361873fe7
2 changed files with 126 additions and 99 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue