C# Класс Tao.Sdl.SdlImage

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
IMG_GetError ( ) : string

Get the current error string

This is the same as SDL_GetError, which returns the last error set as a string which you may use to tell the user what happened when an error status has been returned from an SDL_image function call.

Binds to C-function in SDL_image.h char *IMG_GetError()

IMG_Linked_Version ( ) : Tao.Sdl.Sdl.SDL_version

Using this you can compare the runtime version to the version that you compiled with.

Binds to C-function call in SDL_image.h: const SDL_version * IMG_Linked_Version(void)

IMG_SetError ( string message ) : void

Set the current error string

This is the same as SDL_SetError, which sets the error string which may be fetched with IMG_GetError (or SDL_GetError). This functions acts like printf, except that it is limited to SDL_ERRBUFIZE(1024) chars in length. It only accepts the following format types: %s, %d, %f, %p. No variations are supported, like %.2f would not work. For any more specifics read the SDL docs.

Binds to C-function in SDL_image.h void IMG_SetError(const char *fmt, ...)

SDL_IMAGE_VERSION ( ) : Tao.Sdl.Sdl.SDL_version

This method can be used to fill a version structure with the compile-time version of the SDL_image library.

Binds to C-function call in SDL_image.h: //#define SDL_IMAGE_VERSION(X) { (X)->major = SDL_IMAGE_MAJOR_VERSION; (X)->minor = SDL_IMAGE_MINOR_VERSION; (X)->patch = SDL_IMAGE_PATCHLEVEL; }

Приватные методы

Метод Описание
IMG_Linked_VersionInternal ( ) : IntPtr
IMG_Load ( string file ) : IntPtr
IMG_LoadBMP_RW ( IntPtr src ) : IntPtr
IMG_LoadGIF_RW ( IntPtr src ) : IntPtr
IMG_LoadJPG_RW ( IntPtr src ) : IntPtr
IMG_LoadLBM_RW ( IntPtr src ) : IntPtr
IMG_LoadPCX_RW ( IntPtr src ) : IntPtr
IMG_LoadPNG_RW ( IntPtr src ) : IntPtr
IMG_LoadPNM_RW ( IntPtr src ) : IntPtr
IMG_LoadTGA_RW ( IntPtr src ) : IntPtr
IMG_LoadTIF_RW ( IntPtr src ) : IntPtr
IMG_LoadTyped_RW ( IntPtr src, int freesrc, string type ) : IntPtr
IMG_LoadXCF_RW ( IntPtr src ) : IntPtr
IMG_LoadXPM_RW ( IntPtr src ) : IntPtr
IMG_LoadXV_RW ( IntPtr src ) : IntPtr
IMG_Load_RW ( IntPtr src, int freesrc ) : IntPtr
IMG_ReadXPMFromArray ( string src ) : IntPtr
IMG_isBMP ( IntPtr src ) : IntPtr
IMG_isGIF ( IntPtr src ) : IntPtr
IMG_isJPG ( IntPtr src ) : IntPtr
IMG_isLBM ( IntPtr src ) : IntPtr
IMG_isPCX ( IntPtr src ) : IntPtr
IMG_isPNG ( IntPtr src ) : IntPtr
IMG_isPNM ( IntPtr src ) : IntPtr
IMG_isTIF ( IntPtr src ) : IntPtr
IMG_isXCF ( IntPtr src ) : IntPtr
IMG_isXPM ( IntPtr src ) : IntPtr
IMG_isXV ( IntPtr src ) : IntPtr

Описание методов

IMG_GetError() публичный статический Метод

Get the current error string
This is the same as SDL_GetError, which returns the last error set as a string which you may use to tell the user what happened when an error status has been returned from an SDL_image function call.

Binds to C-function in SDL_image.h char *IMG_GetError()

public static IMG_GetError ( ) : string
Результат string

IMG_Linked_Version() публичный статический Метод

Using this you can compare the runtime version to the version that you compiled with.

Binds to C-function call in SDL_image.h: const SDL_version * IMG_Linked_Version(void)

public static IMG_Linked_Version ( ) : Tao.Sdl.Sdl.SDL_version
Результат Tao.Sdl.Sdl.SDL_version

IMG_SetError() публичный статический Метод

Set the current error string
This is the same as SDL_SetError, which sets the error string which may be fetched with IMG_GetError (or SDL_GetError). This functions acts like printf, except that it is limited to SDL_ERRBUFIZE(1024) chars in length. It only accepts the following format types: %s, %d, %f, %p. No variations are supported, like %.2f would not work. For any more specifics read the SDL docs.

Binds to C-function in SDL_image.h void IMG_SetError(const char *fmt, ...)

public static IMG_SetError ( string message ) : void
message string
Результат void

SDL_IMAGE_VERSION() публичный статический Метод

This method can be used to fill a version structure with the compile-time version of the SDL_image library.

Binds to C-function call in SDL_image.h: //#define SDL_IMAGE_VERSION(X) { (X)->major = SDL_IMAGE_MAJOR_VERSION; (X)->minor = SDL_IMAGE_MINOR_VERSION; (X)->patch = SDL_IMAGE_PATCHLEVEL; }

public static SDL_IMAGE_VERSION ( ) : Tao.Sdl.Sdl.SDL_version
Результат Tao.Sdl.Sdl.SDL_version