Class ImageManager
Deals with image conversions
Inheritance
System.Object
ImageManager
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()
Namespace: Onbox.Revit.V8.UI
Assembly: Onbox.Revit.dll
Syntax
public class ImageManager
Methods
| Improve this Doc View SourceConvertBitmapSource(String, Assembly)
Converts an assembly resource to a BitmapImage
Declaration
public BitmapImage ConvertBitmapSource(string targetResourceName, Assembly assembly)
Parameters
Type | Name | Description |
---|---|---|
System.String | targetResourceName | |
System.Reflection.Assembly | assembly |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapImage |
ConvertToBitmapSource(Bitmap, ImageFormat)
Converts a Bitmap to a BitmapSource
Declaration
public BitmapSource ConvertToBitmapSource(Bitmap src, ImageFormat imageFormat)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Bitmap | src | |
System.Drawing.Imaging.ImageFormat | imageFormat |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapSource |
ConvertToBitmapSource(Stream)
Converts a stream to a BitmapSource
Declaration
public BitmapSource ConvertToBitmapSource(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream |
Returns
Type | Description |
---|---|
System.Windows.Media.Imaging.BitmapSource |