markus / ConvertService / ConverterService / ImageFields / ImageInfoEventArgs.cs @ 3035602a
이력 | 보기 | 이력해설 | 다운로드 (1.25 KB)
1 | 7ca218b3 | KangIngu | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | using System.Windows; |
||
6 | using System.Windows.Media; |
||
7 | |||
8 | namespace ImageFields |
||
9 | { |
||
10 | public class ImageInfoEventArgs : EventArgs |
||
11 | { |
||
12 | // Fields |
||
13 | private Point dpi; |
||
14 | private string fileName; |
||
15 | private PixelFormat imagePixelFormat; |
||
16 | private Point pixelSize; |
||
17 | |||
18 | // Methods |
||
19 | internal ImageInfoEventArgs(string imagePath, Point imageSize, Point imageDpi, PixelFormat imagePixelFormat) |
||
20 | { |
||
21 | this.fileName = imagePath; |
||
22 | this.pixelSize = imageSize; |
||
23 | this.dpi = imageDpi; |
||
24 | this.imagePixelFormat = imagePixelFormat; |
||
25 | } |
||
26 | |||
27 | // Properties |
||
28 | public Point Dpi |
||
29 | { |
||
30 | get |
||
31 | { |
||
32 | return this.dpi; |
||
33 | } |
||
34 | } |
||
35 | |||
36 | public string FileName |
||
37 | { |
||
38 | get |
||
39 | { |
||
40 | return this.fileName; |
||
41 | } |
||
42 | } |
||
43 | |||
44 | public PixelFormat ImagePixelFormat |
||
45 | { |
||
46 | get |
||
47 | { |
||
48 | return this.imagePixelFormat; |
||
49 | } |
||
50 | } |
||
51 | |||
52 | public Point PixelSize |
||
53 | { |
||
54 | get |
||
55 | { |
||
56 | return this.pixelSize; |
||
57 | } |
||
58 | } |
||
59 | } |
||
60 | |||
61 | |||
62 | } |