C# Class ImageGlass.Library.Image.ImageInfo

Mostrar archivo Open project: d2phap/ImageGlass

Public Methods

Method Description
ConvertImage ( System pic, string filename ) : void

Convert image to another format

DeleteFile ( string fileName ) : void

Delete file

DeleteFile ( string fileName, bool isMoveToRecycleBin ) : void

Delete file

DisplayFileProperties ( string fileName, IntPtr hwnd ) : void

Show file property dialog

GetCreateTime ( string filename ) : System.DateTime

Get file creation time

GetFileSize ( string filename ) : string

Get file size format

GetImageFileType ( string filename ) : string

Get image type name

GetImageFileType ( string extension, bool extensionOnly ) : string

Get image file type

GetImageResolution ( string filename ) : string

Get image resolution

GetLastAccess ( string filename ) : System.DateTime

Get file last access

GetWriteTime ( string filename ) : System.DateTime

Get file write time

GetWxHSize ( string filename ) : string

Get image size, Width x height string

RenameFile ( string oldFileName, string newFileName ) : void

Rename file

SaveImage ( System pic, string filename ) : void

Save image

Private Methods

Method Description
ShellExecuteEx ( SHELLEXECUTEINFO &s ) : int

Method Details

ConvertImage() public static method

Convert image to another format
public static ConvertImage ( System pic, string filename ) : void
pic System Image source
filename string Filename
return void

DeleteFile() public static method

Delete file
public static DeleteFile ( string fileName ) : void
fileName string file name
return void

DeleteFile() public static method

Delete file
public static DeleteFile ( string fileName, bool isMoveToRecycleBin ) : void
fileName string file name
isMoveToRecycleBin bool True: Move to Recycle bin | False: Delete permanently
return void

DisplayFileProperties() public static method

Show file property dialog
public static DisplayFileProperties ( string fileName, IntPtr hwnd ) : void
fileName string file name
hwnd System.IntPtr
return void

GetCreateTime() public static method

Get file creation time
public static GetCreateTime ( string filename ) : System.DateTime
filename string file name
return System.DateTime

GetFileSize() public static method

Get file size format
public static GetFileSize ( string filename ) : string
filename string
return string

GetImageFileType() public static method

Get image type name
public static GetImageFileType ( string filename ) : string
filename string file name
return string

GetImageFileType() public static method

Get image file type
public static GetImageFileType ( string extension, bool extensionOnly ) : string
extension string extension code
extensionOnly bool Always true
return string

GetImageResolution() public static method

Get image resolution
public static GetImageResolution ( string filename ) : string
filename string
return string

GetLastAccess() public static method

Get file last access
public static GetLastAccess ( string filename ) : System.DateTime
filename string file name
return System.DateTime

GetWriteTime() public static method

Get file write time
public static GetWriteTime ( string filename ) : System.DateTime
filename string file name
return System.DateTime

GetWxHSize() public static method

Get image size, Width x height string
public static GetWxHSize ( string filename ) : string
filename string file name
return string

RenameFile() public static method

Rename file
public static RenameFile ( string oldFileName, string newFileName ) : void
oldFileName string old file name
newFileName string new file name
return void

SaveImage() public static method

Save image
public static SaveImage ( System pic, string filename ) : void
pic System Image source
filename string Filename
return void