C# Class SpeakFriend.Utilities.ImageStore

Mostrar archivo Open project: teamaton/speak-lib Class Usage Examples

Public Methods

Method Description
CompareByteArrays ( byte imageDataFirst, byte imageDataSecond ) : bool

Dient zum rudimentären Vergleich von Bildern.

Delete ( string groupKey, int id ) : void
EnforceUpdate ( string imageKey ) : void
Get ( string groupKey, int id ) : ImageInfo
Get ( string imageKey ) : string
GetDirectoryRelative ( ) : string
GetGroup ( string groupKey ) : List
GetGroup ( string groupKey, ImageSort imageSort ) : List
GetThumb ( string groupKey, int id, Size maxSize ) : ImageInfo
GetThumb ( string imageKey, Size imageSize ) : string
GetThumbDirectoryRelative ( ) : string
ImageStore ( string pathAbsolute, string pathRelative ) : System
Store ( string imageKey, Image image ) : void
Store ( string imageKey, string sourcePath, bool useJpeg ) : void
StoreToGroup ( string groupKey, string sourcePath, string name, bool useJpeg ) : ImageInfo

Private Methods

Method Description
CalculateHashCode ( string path, string imageKey ) : void
Delete ( string imageKey, bool useJpeg ) : void
EnsureHashCode ( ImageInfo info ) : void
EnsureThumb ( string imageKey, bool useJpeg, Size imageSize ) : string
EnsureThumb ( ImageInfo original, ImageInfo thumb, Size maxSize ) : void
GetFilename ( int id, string name, bool useJpeg ) : string
GetGroupDirectoryAbsolute ( string groupKey ) : string
GetPathAbsolute ( string imageKey, bool useJpeg ) : string
GetPathAbsolute ( string groupKey, int id, string name, bool useJpeg ) : string
GetPathRelative ( string groupKey, string filename ) : string
GetThumbDirectoryAbsolute ( ) : string
GetThumbPathAbsolute ( ImageInfo image, Size maxSize ) : string
GetThumbPathAbsolute ( string key, bool jpeg, Size imageSize ) : string
GetThumbPathRelative ( ImageInfo image, Size maxSize ) : string

Method Details

CompareByteArrays() public static method

Dient zum rudimentären Vergleich von Bildern.
public static CompareByteArrays ( byte imageDataFirst, byte imageDataSecond ) : bool
imageDataFirst byte ein Bild
imageDataSecond byte ein anderes Bild
return bool

Delete() public method

public Delete ( string groupKey, int id ) : void
groupKey string
id int
return void

EnforceUpdate() public method

public EnforceUpdate ( string imageKey ) : void
imageKey string
return void

Get() public method

public Get ( string groupKey, int id ) : ImageInfo
groupKey string
id int
return ImageInfo

Get() public method

public Get ( string imageKey ) : string
imageKey string
return string

GetDirectoryRelative() public method

public GetDirectoryRelative ( ) : string
return string

GetGroup() public method

public GetGroup ( string groupKey ) : List
groupKey string
return List

GetGroup() public method

public GetGroup ( string groupKey, ImageSort imageSort ) : List
groupKey string
imageSort ImageSort
return List

GetThumb() public method

public GetThumb ( string groupKey, int id, Size maxSize ) : ImageInfo
groupKey string
id int
maxSize System.Drawing.Size
return ImageInfo

GetThumb() public method

public GetThumb ( string imageKey, Size imageSize ) : string
imageKey string
imageSize System.Drawing.Size
return string

GetThumbDirectoryRelative() public method

public GetThumbDirectoryRelative ( ) : string
return string

ImageStore() public method

public ImageStore ( string pathAbsolute, string pathRelative ) : System
pathAbsolute string
pathRelative string
return System

Store() public method

public Store ( string imageKey, Image image ) : void
imageKey string
image Image
return void

Store() public method

public Store ( string imageKey, string sourcePath, bool useJpeg ) : void
imageKey string
sourcePath string
useJpeg bool
return void

StoreToGroup() public method

public StoreToGroup ( string groupKey, string sourcePath, string name, bool useJpeg ) : ImageInfo
groupKey string
sourcePath string
name string
useJpeg bool
return ImageInfo