// ==========================================================
// FreeImage 3 .NET wrapper
// Original FreeImage 3 functions and .NET compatible derived functions
//
// Design and implementation by
// - Jean-Philippe Goerke (jpgoerke@users.sourceforge.net)
// - Carsten Klein (cklein05@users.sourceforge.net)
//
// Contributors:
// - David Boland (davidboland@vodafone.ie)
//
// Main reference : MSDN Knowlede Base
//
// This file is part of FreeImage 3
//
// COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES
// THAT THE COVERED CODE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE
// OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED
// CODE IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT
// THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY
// SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL
// PART OF THIS LICENSE. NO USE OF ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER
// THIS DISCLAIMER.
//
// Use at your own risk!
// ==========================================================
// ==========================================================
// CVS
// $Revision: 1.3 $
// $Date: 2008/06/17 13:48:22 $
// $Id: Plugin.cs,v 1.3 2008/06/17 13:48:22 cklein05 Exp $
// ==========================================================
using System;
using System.Runtime.InteropServices;
using FreeImageAPI.Plugins;
namespace FreeImageAPI.Plugins
{
///
/// The structure contains functionpointers that make up a FreeImage plugin.
///
[Serializable, StructLayout(LayoutKind.Sequential)]
public struct Plugin
{
///
/// Delegate to a function that returns a string which describes
/// the plugins format.
///
public FormatProc formatProc;
///
/// Delegate to a function that returns a string which contains
/// a more detailed description.
///
public DescriptionProc descriptionProc;
///
/// Delegate to a function that returns a comma seperated list
/// of file extensions the plugin can read or write.
///
public ExtensionListProc extensionListProc;
///
/// Delegate to a function that returns a regular expression that
/// can be used to idientify whether a file can be handled by the plugin.
///
public RegExprProc regExprProc;
///
/// Delegate to a function that opens a file.
///
public OpenProc openProc;
///
/// Delegate to a function that closes a previosly opened file.
///
public CloseProc closeProc;
///
/// Delegate to a function that returns the number of pages of a multipage
/// bitmap if the plugin is capable of handling multipage bitmaps.
///
public PageCountProc pageCountProc;
///
/// UNKNOWN
///
public PageCapabilityProc pageCapabilityProc;
///
/// Delegate to a function that loads and decodes a bitmap into memory.
///
public LoadProc loadProc;
///
/// Delegate to a function that saves a bitmap.
///
public SaveProc saveProc;
///
/// Delegate to a function that determines whether the source is a valid image.
///
public ValidateProc validateProc;
///
/// Delegate to a function that returns a string which contains
/// the plugin's mime type.
///
public MimeProc mimeProc;
///
/// Delegate to a function that returns whether the plugin can handle the
/// specified color depth.
///
public SupportsExportBPPProc supportsExportBPPProc;
///
/// Delegate to a function that returns whether the plugin can handle the
/// specified image type.
///
public SupportsExportTypeProc supportsExportTypeProc;
///
/// Delegate to a function that returns whether the plugin can handle
/// ICC-Profiles.
///
public SupportsICCProfilesProc supportsICCProfilesProc;
}
}