37 using System.Runtime.InteropServices;
38 using FreeImageAPI.Plugins;
40 namespace FreeImageAPI.Plugins
45 [Serializable, StructLayout(LayoutKind.Sequential)]
delegate int PageCapabilityProc(ref FreeImageIO io, fi_handle handle, IntPtr data)
UNKNOWN
delegate FIBITMAP LoadProc(ref FreeImageIO io, fi_handle handle, int page, int flags, IntPtr data)
Delegate to a function that loads and decodes a bitmap into memory.
delegate string ExtensionListProc()
Delegate to a function that returns a comma seperated list of file extensions the plugin can read or ...
delegate string MimeProc()
Delegate to a function that returns a string which contains the plugin's mime type.
delegate string RegExprProc()
Delegate to a function that returns a regular expression that can be used to idientify whether a file...
The structure contains functionpointers that make up a FreeImage plugin.
delegate bool SupportsExportTypeProc(FREE_IMAGE_TYPE type)
Delegate to a function that returns whether the plugin can handle the specified image type...
delegate bool SupportsExportBPPProc(int bpp)
Delegate to a function that returns whether the plugin can handle the specified color depth...
delegate string FormatProc()
Delegate to a function that returns a string which describes the plugins format.
delegate int PageCountProc(ref FreeImageIO io, fi_handle handle, IntPtr data)
Delegate to a function that returns the number of pages of a multipage bitmap if the plugin is capabl...
delegate IntPtr OpenProc(ref FreeImageIO io, fi_handle handle, bool read)
Delegate to a function that opens a file.
delegate bool SupportsICCProfilesProc()
Delegate to a function that returns whether the plugin can handle ICC-Profiles.
delegate bool SaveProc(ref FreeImageIO io, FIBITMAP dib, fi_handle handle, int page, int flags, IntPtr data)
Delegate to a function that saves a bitmap.
delegate bool ValidateProc(ref FreeImageIO io, fi_handle handle)
Delegate to a function that determines whether the source defined by and is a valid image...
delegate string DescriptionProc()
Delegate to a function that returns a string which contains a more detailed description.
delegate void CloseProc(ref FreeImageIO io, fi_handle handle, IntPtr data)
Delegate to a function that closes a previosly opened file.