Method | Description | |
---|---|---|
CalculateAverageRating ( object r ) : int | ||
FormatDescription ( string desc ) : string | ||
FormatEditUrl ( object contentObjectID ) : string | ||
FormatScreenshotImage ( object contentObjectID, object screenshot ) : string | ||
FormatSubmitterLogoImage ( object contentObjectID ) : string | ||
FormatZipFilePath ( object contentObjectID, object location ) : string | ||
GenerateThumbnail ( System inStream, System outStream, System format ) : void |
Takes a specified image stream, converts it into a smaller thumbnail, and saves it.
|
|
GetByteArrayFromFileUpload ( System.Web.UI.WebControls.FileUpload fu ) : byte[] | ||
GetFileSHA1AndSalt ( Stream s ) : string |
Takes an input file and computes a SHA-1 formatted hash with a salt. Used for both getting temp file handles during upload and for generating ThumbnailIds
|
|
GetFullUserName ( object userName ) : string | ||
GetPidFromURL ( |
||
ImageConvertAbortCallback ( ) : bool | ||
IsValidLogoImageContentType ( string contentType ) : bool | ||
IsValidUser ( string identity ) : bool | ||
ShowSubmitterLogoImage ( object contentObjectID ) : System.Boolean | ||
WriteContentFileToResponse ( string Pid, string filename, |
||
WriteJSONtoResponse ( Stream stream, |
||
WriteLocalFileToResponse ( string filename, |
||
WriteTextureToResponseFromZip ( Ionic zip, string TextureName, |
public static CalculateAverageRating ( object r ) : int | ||
r | object | |
return | int |
public static FormatDescription ( string desc ) : string | ||
desc | string | |
return | string |
public static FormatEditUrl ( object contentObjectID ) : string | ||
contentObjectID | object | |
return | string |
public static FormatScreenshotImage ( object contentObjectID, object screenshot ) : string | ||
contentObjectID | object | |
screenshot | object | |
return | string |
public static FormatSubmitterLogoImage ( object contentObjectID ) : string | ||
contentObjectID | object | |
return | string |
public static FormatZipFilePath ( object contentObjectID, object location ) : string | ||
contentObjectID | object | |
location | object | |
return | string |
public static GenerateThumbnail ( System inStream, System outStream, System format ) : void | ||
inStream | System | The stream containing the image |
outStream | System | The destination stream (not necessarily a file) |
format | System | The ImageFormat to save your image as |
return | void |
public static GetByteArrayFromFileUpload ( System.Web.UI.WebControls.FileUpload fu ) : byte[] | ||
fu | System.Web.UI.WebControls.FileUpload | |
return | byte[] |
public static GetFileSHA1AndSalt ( Stream s ) : string | ||
s | Stream | |
return | string |
public static GetFullUserName ( object userName ) : string | ||
userName | object | |
return | string |
public static GetPidFromURL ( |
||
context | ||
return | string |
public static ImageConvertAbortCallback ( ) : bool | ||
return | bool |
public static IsValidLogoImageContentType ( string contentType ) : bool | ||
contentType | string | |
return | bool |
public static IsValidUser ( string identity ) : bool | ||
identity | string | |
return | bool |
public static ShowSubmitterLogoImage ( object contentObjectID ) : System.Boolean | ||
contentObjectID | object | |
return | System.Boolean |
public static WriteContentFileToResponse ( string Pid, string filename, |
||
Pid | string | |
filename | string | |
context | ||
vd | vwarDAL | |
return | void |
public static WriteJSONtoResponse ( Stream stream, |
||
stream | Stream | |
context | ||
return | void |
public static WriteLocalFileToResponse ( string filename, |
||
filename | string | |
context | ||
return | void |
public static WriteTextureToResponseFromZip ( Ionic zip, string TextureName, |
||
zip | Ionic | |
TextureName | string | |
context | ||
return | void |