Tao.Sdl SDK Documentation

SdlImage.IMG_isLBM Method 

Test for valid, supported LBM file.

[Visual Basic]
Public Shared Function IMG_isLBM( _
   ByVal src As IntPtr _
) As IntPtr
[C#]
public static IntPtr IMG_isLBM(
   IntPtr src
);

Parameters

src

Return Value

1 if the image is a LBM and the LBM format support is compiled into SDL_image. 0 is returned otherwise.

Remarks

If the LBM format is supported, then the image data is tested to see if it is readable as a LBM, otherwise it returns false (Zero).

Binds to C-function in SDL_image.h

            int IMG_isLBM(SDL_RWops *src)
            

Example

            // Test sample.lbm to see if it is a LBM
                    SDL_RWops *rwop;
                    rwop=SDL_RWFromFile("sample.lbm", "rb");
                    if(IMG_isLBM(rwop))
                    printf("sample.lbm is a LBM file.\n");
                    else
                    printf("sample.lbm is not a LBM file, or LBM support is not available.\n");
            

See Also

SdlImage Class | Tao.Sdl Namespace | IMG_LoadTyped_RW