38 using System.Runtime.InteropServices;
39 using FreeImageAPI.IO;
41 namespace FreeImageAPI
51 [UnmanagedFunctionPointer(CallingConvention.Cdecl, CharSet = CharSet.Ansi, ThrowOnUnmappableChar =
false)]
55 namespace FreeImageAPI.IO
100 namespace FreeImageAPI.Plugins
190 public delegate
void InitProc(ref Plugin plugin,
int format_id);
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.
Structure for implementing access to custom handles.
delegate void InitProc(ref Plugin plugin, int format_id)
Callback function used by FreeImage to register plugins.
_In_ size_t _In_ DXGI_FORMAT _In_ size_t _In_ DXGI_FORMAT _In_ DWORD flags
delegate string ExtensionListProc()
Delegate to a function that returns a comma seperated list of file extensions the plugin can read or ...
delegate uint ReadProc(IntPtr buffer, uint size, uint count, fi_handle handle)
Delegate to the C++ function fread.
delegate string MimeProc()
Delegate to a function that returns a string which contains the plugin's mime type.
delegate int SeekProc(fi_handle handle, int offset, SeekOrigin origin)
Delegate to the C++ function fseek.
delegate string RegExprProc()
Delegate to a function that returns a regular expression that can be used to idientify whether a file...
delegate void OutputMessageFunction(FREE_IMAGE_FORMAT fif, string message)
Delegate for capturing FreeImage error messages.
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 int TellProc(fi_handle handle)
Delegate to the C++ function ftell.
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 uint WriteProc(IntPtr buffer, uint size, uint count, fi_handle handle)
Delegate to the C++ function fwrite.
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.
Wrapper for a custom handle.
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...
FREE_IMAGE_TYPE
Image types used in FreeImage.
FREE_IMAGE_FORMAT
I/O image format identifiers.
_In_ size_t _In_ size_t size
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.