Class ImageUtils
Inheritance
System.Object
ImageUtils
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Aurigma.DesignAtoms.dll
Syntax
public static class ImageUtils
Methods
Declaration
public static string GetImageExtension(FileFormat format)
Parameters
Type |
Name |
Description |
Aurigma.GraphicsMill.Codecs.FileFormat |
format |
|
Returns
Type |
Description |
System.String |
|
GetImageExtension(FileInfo)
Declaration
public static string GetImageExtension(FileInfo imageFile)
Parameters
Type |
Name |
Description |
System.IO.FileInfo |
imageFile |
|
Returns
Type |
Description |
System.String |
|
GetImageExtension(Stream)
Declaration
public static string GetImageExtension(Stream imageStream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
imageStream |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static string GetImageMimeType(FileFormat imageFormat)
Parameters
Type |
Name |
Description |
Aurigma.GraphicsMill.Codecs.FileFormat |
imageFormat |
|
Returns
Type |
Description |
System.String |
|
GetImageMimeType(String)
Declaration
public static string GetImageMimeType(string fileName)
Parameters
Type |
Name |
Description |
System.String |
fileName |
|
Returns
Type |
Description |
System.String |
|
GetImageSize(IFileCache, String, Int32, out Size, out Single, out Single)
Declaration
public static void GetImageSize(IFileCache fileCache, string sourceStorageId, int pageIndex, out Size imageSize, out float horizontalResolution, out float verticalResolution)
Parameters
Type |
Name |
Description |
IFileCache |
fileCache |
|
System.String |
sourceStorageId |
|
System.Int32 |
pageIndex |
|
System.Drawing.Size |
imageSize |
|
System.Single |
horizontalResolution |
|
System.Single |
verticalResolution |
|
GetImageSize(IImageParams, out Size, out Single, out Single)
Declaration
public static void GetImageSize(IImageParams reader, out Size imageSize, out float horizontalResolution, out float verticalResolution)
Parameters
Type |
Name |
Description |
Aurigma.GraphicsMill.IImageParams |
reader |
|
System.Drawing.Size |
imageSize |
|
System.Single |
horizontalResolution |
|
System.Single |
verticalResolution |
|
GetImageSize(Stream, out Size, out Single, out Single)
Declaration
public static void GetImageSize(Stream imageStream, out Size imageSize, out float horizontalResolution, out float verticalResolution)
Parameters
Type |
Name |
Description |
System.IO.Stream |
imageStream |
|
System.Drawing.Size |
imageSize |
|
System.Single |
horizontalResolution |
|
System.Single |
verticalResolution |
|
GetPageSize(IFileCache, String, Int32)
Declaration
public static Size GetPageSize(IFileCache fileCache, string sourceStorageId, int pageIndex)
Parameters
Type |
Name |
Description |
IFileCache |
fileCache |
|
System.String |
sourceStorageId |
|
System.Int32 |
pageIndex |
|
Returns
Type |
Description |
System.Drawing.Size |
|
Declaration
public static WriterSettings GetWriterSettings(FileFormat imageFormat)
Parameters
Type |
Name |
Description |
Aurigma.GraphicsMill.Codecs.FileFormat |
imageFormat |
|
Returns
Type |
Description |
Aurigma.GraphicsMill.Codecs.WriterSettings |
|
IsSvgContainsText(Stream)
Declaration
public static bool IsSvgContainsText(Stream stream)
Parameters
Type |
Name |
Description |
System.IO.Stream |
stream |
|
Returns
Type |
Description |
System.Boolean |
|
RotateByExif(ImageReader, ILogger)
Declaration
public static Stream RotateByExif(ImageReader imageReader, ILogger logger = null)
Parameters
Type |
Name |
Description |
Aurigma.GraphicsMill.Codecs.ImageReader |
imageReader |
|
NLog.ILogger |
logger |
|
Returns
Type |
Description |
System.IO.Stream |
|