C# 클래스 JustPressPlay.Utilities.JPPImage

파일 보기 프로젝트 열기: RIT-MAGIC/JustPressPlay

공개 메소드들

메소드 설명
FileIsWebFriendlyImage ( Stream stream ) : bool

Checks to make sure the image uploaded is one of the approved types (.png, .gif, .jpg)

GetIconFileNames ( ) : List

Gets the achievement/quest icon file names in the system, WITHOUT extensions

Save ( System.Web.HttpServerUtilityBase serverUtilityBase, string filePath, Stream stream, int maxSideSize, int minSideSize, bool makeItSquare ) : void

Resizes and saves the image to the specified location

SaveAchievementIcons ( string newFileNameAndPath, string iconNameNoExt, int create, int explore, int learn, int socialize ) : bool

Saves the three achievement icons

SaveImageAtSquareSize ( string filePath, Image originalImage, int size, ImageSaveInfo info ) : void

Saves an image (from a stream) at a specific size

SavePlayerImages ( string filePath, string fileNameNoExt, Stream stream ) : System.Boolean

Saves the three player images

SavePlayerQRCodes ( string filePath, string fileNameNoExt, string qrString ) : System.Boolean

Saves the three player qrcodes

SaveQuestIcons ( string newFileNameAndPath, string iconNameNoExt, bool userGeneratedQuest ) : System.Boolean

Saves the three quest icons

메소드 상세

FileIsWebFriendlyImage() 공개 정적인 메소드

Checks to make sure the image uploaded is one of the approved types (.png, .gif, .jpg)
public static FileIsWebFriendlyImage ( Stream stream ) : bool
stream Stream
리턴 bool

GetIconFileNames() 공개 정적인 메소드

Gets the achievement/quest icon file names in the system, WITHOUT extensions
public static GetIconFileNames ( ) : List
리턴 List

Save() 공개 정적인 메소드

Resizes and saves the image to the specified location
public static Save ( System.Web.HttpServerUtilityBase serverUtilityBase, string filePath, Stream stream, int maxSideSize, int minSideSize, bool makeItSquare ) : void
serverUtilityBase System.Web.HttpServerUtilityBase
filePath string
stream Stream The bytes for the image passed in
maxSideSize int Maximum image width
minSideSize int
makeItSquare bool Whether or not to make the image a square
리턴 void

SaveAchievementIcons() 공개 정적인 메소드

Saves the three achievement icons
public static SaveAchievementIcons ( string newFileNameAndPath, string iconNameNoExt, int create, int explore, int learn, int socialize ) : bool
newFileNameAndPath string The file and path for saving the images
iconNameNoExt string The icon name without extension
create int Create points for the achievement
explore int Explore points for the achievement
learn int Learn points for the achievement
socialize int Socialize points for the achievement
리턴 bool

SaveImageAtSquareSize() 공개 정적인 메소드

Saves an image (from a stream) at a specific size
public static SaveImageAtSquareSize ( string filePath, Image originalImage, int size, ImageSaveInfo info ) : void
filePath string The file name and path for saving
originalImage Image
size int The size for saving
info ImageSaveInfo
리턴 void

SavePlayerImages() 공개 정적인 메소드

Saves the three player images
public static SavePlayerImages ( string filePath, string fileNameNoExt, Stream stream ) : System.Boolean
filePath string The file path (no file name)
fileNameNoExt string The file name without extension
stream Stream The image stream
리턴 System.Boolean

SavePlayerQRCodes() 공개 정적인 메소드

Saves the three player qrcodes
public static SavePlayerQRCodes ( string filePath, string fileNameNoExt, string qrString ) : System.Boolean
filePath string The file path (no file name)
fileNameNoExt string The file name without extension
qrString string
리턴 System.Boolean

SaveQuestIcons() 공개 정적인 메소드

Saves the three quest icons
public static SaveQuestIcons ( string newFileNameAndPath, string iconNameNoExt, bool userGeneratedQuest ) : System.Boolean
newFileNameAndPath string The file and path for saving the images
iconNameNoExt string The icon name without extension
userGeneratedQuest bool Is this a user generated quest?
리턴 System.Boolean