C# Class noerd.Umb.DataTypes.multipleFileUpload.DefaultImageMediaFactory

The default Media factory for image files.
Inheritance: MediaFactory
Exibir arquivo Open project: noerd/Multiple-File-Upload-Package

Public Methods

Method Description
CreateMedia ( IconI parent, System.Web.HttpPostedFile uploadFile ) : umbraco.cms.businesslogic.media.Media

Private Methods

Method Description
GenerateAdditionalThumbnails ( Image image, int fileWidth, int fileHeight, string destFilePath ) : void
GenerateThumbnail ( Image image, int maxWidthHeight, int fileWidth, int fileHeight, string thumbnailFileName ) : void
SetImageMediaProperties ( umbraco.cms.businesslogic.media.Media media, string file, int fileWidth, int fileHeight, int bytes, string ext ) : void

Method Details

CreateMedia() public method

public CreateMedia ( IconI parent, System.Web.HttpPostedFile uploadFile ) : umbraco.cms.businesslogic.media.Media
parent IconI
uploadFile System.Web.HttpPostedFile
return umbraco.cms.businesslogic.media.Media