WindowlessControls.PlatformBitmap.From C# (CSharp) Method

From() public static method

public static From ( Stream bitmapStream ) : PlatformBitmap
bitmapStream Stream
return PlatformBitmap
        public static PlatformBitmap From(Stream bitmapStream)
        {
            return From(bitmapStream, false);
        }

Same methods

PlatformBitmap::From ( Stream bitmapStream, bool isOpaque ) : PlatformBitmap
PlatformBitmap::From ( string filename ) : PlatformBitmap

Usage Example

Beispiel #1
0
 public static PlatformBitmap From(string filename)
 {
     using (FileStream stream = new FileStream(filename, FileMode.Open, FileAccess.Read))
     {
         return(PlatformBitmap.From(stream, IsOpaque(filename)));
     }
 }
All Usage Examples Of WindowlessControls.PlatformBitmap::From