Method | Description | |
---|---|---|
AddImage ( |
There should be No logging in the API Adds an image to the DB
|
|
AddImage ( string name, string type, byte imageData ) : int |
Adds an image to the OSAE DB
|
|
DeleteImage ( int imageId ) : void |
Deletes an image from the DB
|
|
GetGIFFromFileStream ( String path ) : byte[] | ||
GetGIFFromImageControl ( |
||
GetImage ( int imageId ) : |
Gets an image from the DB
|
|
GetImage ( int imageId, bool returnNullIfNotExist ) : |
Gets an image from the DB
|
|
GetImage ( string imageName ) : |
Gets an image from the DB
|
|
GetImageList ( ) : List |
Returns a list of available images without the type or data for performence reasons.
|
|
GetImages ( ) : List |
Gets all the images available in the DB Only call this method if you have to as retrieving all images can take a short while |
|
GetJPGFromImageControl ( |
||
GetPNGFromImageControl ( |
||
GifToByteArray ( Image imageIn ) : byte[] | ||
JpgToByteArray ( Image imageIn ) : byte[] | ||
PngToByteArray ( Image imageIn ) : byte[] |
public AddImage ( |
||
osaeImage | The image information to add | |
return | int |
public AddImage ( string name, string type, byte imageData ) : int | ||
name | string | The name of the image this should not include the path or extension |
type | string | the type of the image e.g. jpg, png do not include the . |
imageData | byte | the binary data of the image |
return | int |
public DeleteImage ( int imageId ) : void | ||
imageId | int | The Id of the image to delete |
return | void |
public GetGIFFromFileStream ( String path ) : byte[] | ||
path | String | |
return | byte[] |
public GetGIFFromImageControl ( |
||
imageC | ||
return | byte[] |
public GetImage ( int imageId ) : |
||
imageId | int | The id of the image to get |
return |
public GetImage ( int imageId, bool returnNullIfNotExist ) : |
||
imageId | int | The id of the image to get |
returnNullIfNotExist | bool | If the image is not found, should null be returned? Otherwise return empty image object. |
return |
public GetImage ( string imageName ) : |
||
imageName | string | |
return |
public GetJPGFromImageControl ( |
||
imageC | ||
return | byte[] |
public GetPNGFromImageControl ( |
||
imageC | ||
return | byte[] |
public GifToByteArray ( Image imageIn ) : byte[] | ||
imageIn | Image | |
return | byte[] |
public JpgToByteArray ( Image imageIn ) : byte[] | ||
imageIn | Image | |
return | byte[] |
public PngToByteArray ( Image imageIn ) : byte[] | ||
imageIn | Image | |
return | byte[] |