~cosme/ubuntu/precise/freeimage/freeimage-3.15.1

« back to all changes in this revision

Viewing changes to Wrapper/FreeImage.NET/cs/Library/Structs/Plugin.cs

  • Committer: Stefano Rivera
  • Date: 2010-07-24 15:35:51 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: stefanor@ubuntu.com-20100724153551-6s3fth1653huk31a
Tags: upstream-3.13.1
ImportĀ upstreamĀ versionĀ 3.31.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// ==========================================================
 
2
// FreeImage 3 .NET wrapper
 
3
// Original FreeImage 3 functions and .NET compatible derived functions
 
4
//
 
5
// Design and implementation by
 
6
// - Jean-Philippe Goerke (jpgoerke@users.sourceforge.net)
 
7
// - Carsten Klein (cklein05@users.sourceforge.net)
 
8
//
 
9
// Contributors:
 
10
// - David Boland (davidboland@vodafone.ie)
 
11
//
 
12
// Main reference : MSDN Knowlede Base
 
13
//
 
14
// This file is part of FreeImage 3
 
15
//
 
16
// COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY
 
17
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES
 
18
// THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE
 
19
// OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED
 
20
// CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT
 
21
// THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY
 
22
// SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL
 
23
// PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER
 
24
// THIS DISCLAIMER.
 
25
//
 
26
// Use at your own risk!
 
27
// ==========================================================
 
28
 
 
29
// ==========================================================
 
30
// CVS
 
31
// $Revision: 1.3 $
 
32
// $Date: 2008/06/17 13:48:22 $
 
33
// $Id: Plugin.cs,v 1.3 2008/06/17 13:48:22 cklein05 Exp $
 
34
// ==========================================================
 
35
 
 
36
using System;
 
37
using System.Runtime.InteropServices;
 
38
using FreeImageAPI.Plugins;
 
39
 
 
40
namespace FreeImageAPI.Plugins
 
41
{
 
42
        /// <summary>
 
43
        /// The structure contains functionpointers that make up a FreeImage plugin.
 
44
        /// </summary>
 
45
        [Serializable, StructLayout(LayoutKind.Sequential)]
 
46
        public struct Plugin
 
47
        {
 
48
                /// <summary>
 
49
                /// Delegate to a function that returns a string which describes
 
50
                /// the plugins format.
 
51
                /// </summary>
 
52
                public FormatProc formatProc;
 
53
 
 
54
                /// <summary>
 
55
                /// Delegate to a function that returns a string which contains
 
56
                /// a more detailed description.
 
57
                /// </summary>
 
58
                public DescriptionProc descriptionProc;
 
59
 
 
60
                /// <summary>
 
61
                /// Delegate to a function that returns a comma seperated list
 
62
                /// of file extensions the plugin can read or write.
 
63
                /// </summary>
 
64
                public ExtensionListProc extensionListProc;
 
65
 
 
66
                /// <summary>
 
67
                /// Delegate to a function that returns a regular expression that
 
68
                /// can be used to idientify whether a file can be handled by the plugin.
 
69
                /// </summary>
 
70
                public RegExprProc regExprProc;
 
71
 
 
72
                /// <summary>
 
73
                /// Delegate to a function that opens a file.
 
74
                /// </summary>
 
75
                public OpenProc openProc;
 
76
 
 
77
                /// <summary>
 
78
                /// Delegate to a function that closes a previosly opened file.
 
79
                /// </summary>
 
80
                public CloseProc closeProc;
 
81
 
 
82
                /// <summary>
 
83
                /// Delegate to a function that returns the number of pages of a multipage
 
84
                /// bitmap if the plugin is capable of handling multipage bitmaps.
 
85
                /// </summary>
 
86
                public PageCountProc pageCountProc;
 
87
 
 
88
                /// <summary>
 
89
                /// UNKNOWN
 
90
                /// </summary>
 
91
                public PageCapabilityProc pageCapabilityProc;
 
92
 
 
93
                /// <summary>
 
94
                /// Delegate to a function that loads and decodes a bitmap into memory.
 
95
                /// </summary>
 
96
                public LoadProc loadProc;
 
97
 
 
98
                /// <summary>
 
99
                ///  Delegate to a function that saves a bitmap.
 
100
                /// </summary>
 
101
                public SaveProc saveProc;
 
102
 
 
103
                /// <summary>
 
104
                /// Delegate to a function that determines whether the source is a valid image.
 
105
                /// </summary>
 
106
                public ValidateProc validateProc;
 
107
 
 
108
                /// <summary>
 
109
                /// Delegate to a function that returns a string which contains
 
110
                /// the plugin's mime type.
 
111
                /// </summary>
 
112
                public MimeProc mimeProc;
 
113
 
 
114
                /// <summary>
 
115
                /// Delegate to a function that returns whether the plugin can handle the
 
116
                /// specified color depth.
 
117
                /// </summary>
 
118
                public SupportsExportBPPProc supportsExportBPPProc;
 
119
 
 
120
                /// <summary>
 
121
                /// Delegate to a function that returns whether the plugin can handle the
 
122
                /// specified image type.
 
123
                /// </summary>
 
124
                public SupportsExportTypeProc supportsExportTypeProc;
 
125
 
 
126
                /// <summary>
 
127
                /// Delegate to a function that returns whether the plugin can handle
 
128
                /// ICC-Profiles.
 
129
                /// </summary>
 
130
                public SupportsICCProfilesProc supportsICCProfilesProc;
 
131
        }
 
132
}
 
 
b'\\ No newline at end of file'