PictureWriterExtensions.SaveAsBytes(IPictureWriter, IPicture) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Saves a picture as a byte array.
public:
[System::Runtime::CompilerServices::Extension]
static cli::array <System::Byte> ^ SaveAsBytes(Microsoft::Maui::Graphics::IPictureWriter ^ target, Microsoft::Maui::Graphics::IPicture ^ picture);
public static byte[] SaveAsBytes(this Microsoft.Maui.Graphics.IPictureWriter target, Microsoft.Maui.Graphics.IPicture picture);
static member SaveAsBytes : Microsoft.Maui.Graphics.IPictureWriter * Microsoft.Maui.Graphics.IPicture -> byte[]
<Extension()>
Public Function SaveAsBytes (target As IPictureWriter, picture As IPicture) As Byte()
Parameters
- target
- IPictureWriter
The picture writer to use for saving.
- picture
- IPicture
The picture to save.
Returns
A byte array containing the saved picture data, or null if either the target or picture is null.