C# Class SobekCM.Resource_Object.Divisions.SobekCM_File_Info

Inheritance: MetadataDescribableBase
Afficher le fichier Open project: MarkVSullivan/SobekCM-Web-Application Class Usage Examples

Private Properties

Свойство Type Description
get_attributes_from_jpeg2000 bool

Méthodes publiques

Méthode Description
Compute_Jpeg2000_Attributes ( string File_Location ) : bool

Determine the width and height of a JPEG2000 file by reading the file into a temporary System.Drawing.Bitmap object.

After this method is run, the width and height should now be available by calling the respective properties on this file object

Compute_Jpeg_Attributes ( string File_Location ) : bool

Determine the width and height of a JPEG file by reading the file into a temporary System.Drawing.Bitmap object.

After this method is run, the width and height should now be available by calling the respective properties on this file object

MIME_Type ( string Extenstion ) : string

Gets the MIME Type of this file

This is computed from the provided System_Name's final extension

Set_Technical_Details ( ushort New_Width, ushort New_Height ) : void

Sets the technical details for this image file

SobekCM_File_Info ( ) : System

Constructor creates an empty instance of the SobekCM_File_Info class

SobekCM_File_Info ( string System_Name ) : System

Constructor creates a new instance of the SobekCM_File_Info class

SobekCM_File_Info ( string System_Name, ushort Width, ushort Height ) : System

Constructor creates a new instance of the SobekCM_File_Info class

Private Methods

Méthode Description
get_attributes_from_jpeg2000 ( string File ) : bool

Method Details

Compute_Jpeg2000_Attributes() public méthode

Determine the width and height of a JPEG2000 file by reading the file into a temporary System.Drawing.Bitmap object.
After this method is run, the width and height should now be available by calling the respective properties on this file object
public Compute_Jpeg2000_Attributes ( string File_Location ) : bool
File_Location string Current location for this file
Résultat bool

Compute_Jpeg_Attributes() public méthode

Determine the width and height of a JPEG file by reading the file into a temporary System.Drawing.Bitmap object.
After this method is run, the width and height should now be available by calling the respective properties on this file object
public Compute_Jpeg_Attributes ( string File_Location ) : bool
File_Location string Current location for this file
Résultat bool

MIME_Type() public méthode

Gets the MIME Type of this file
This is computed from the provided System_Name's final extension
public MIME_Type ( string Extenstion ) : string
Extenstion string File extension
Résultat string

Set_Technical_Details() public méthode

Sets the technical details for this image file
public Set_Technical_Details ( ushort New_Width, ushort New_Height ) : void
New_Width ushort Width of this image file
New_Height ushort Height of this image file
Résultat void

SobekCM_File_Info() public méthode

Constructor creates an empty instance of the SobekCM_File_Info class
public SobekCM_File_Info ( ) : System
Résultat System

SobekCM_File_Info() public méthode

Constructor creates a new instance of the SobekCM_File_Info class
public SobekCM_File_Info ( string System_Name ) : System
System_Name string System name for the new file
Résultat System

SobekCM_File_Info() public méthode

Constructor creates a new instance of the SobekCM_File_Info class
public SobekCM_File_Info ( string System_Name, ushort Width, ushort Height ) : System
System_Name string System name for the new file
Width ushort Width of this image file
Height ushort Height of this image file
Résultat System