[longomatch] Add method to scale the image
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add method to scale the image
- Date: Sun, 18 Dec 2011 21:42:55 +0000 (UTC)
commit 6e9f8f541211e1b47c8dba7276d38113aac02d25
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Dec 11 21:44:48 2011 +0100
Add method to scale the image
LongoMatch.Core/Common/Image.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Common/Image.cs b/LongoMatch.Core/Common/Image.cs
index 19273ca..c4bf1b3 100644
--- a/LongoMatch.Core/Common/Image.cs
+++ b/LongoMatch.Core/Common/Image.cs
@@ -29,6 +29,8 @@ namespace LongoMatch.Common
public class Image
{
+ const int DEFAULT_MAX_HEIGHT = 100;
+ const int DEFAULT_MAX_WIDTH = 100;
SImage image;
public Image (SImage image)
@@ -46,6 +48,10 @@ namespace LongoMatch.Common
image.Dispose();
}
+ public void Scale() {
+ Scale (DEFAULT_MAX_WIDTH, DEFAULT_MAX_HEIGHT);
+ }
+
#if HAVE_GTK
public byte[] Serialize () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]