C# Class SobekCM.Resource_Object.Divisions.SobekCM_File_Info

Inheritance: MetadataDescribableBase
Mostrar archivo Open project: MarkVSullivan/SobekCM-Web-Application Class Usage Examples

Private Properties

Property Type Description
get_attributes_from_jpeg2000 bool

Public Methods

Method 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

Method Description
get_attributes_from_jpeg2000 ( string File ) : bool

Method Details

Compute_Jpeg2000_Attributes() public method

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
return bool

Compute_Jpeg_Attributes() public method

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
return bool

MIME_Type() public method

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
return string

Set_Technical_Details() public method

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
return void

SobekCM_File_Info() public method

Constructor creates an empty instance of the SobekCM_File_Info class
public SobekCM_File_Info ( ) : System
return System

SobekCM_File_Info() public method

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
return System

SobekCM_File_Info() public method

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
return System