CreatePicture in .Net Maui
In .Net Maui I have trying to take the image and put on word (.docx), but the button get frozen and the system broken when the app use . CreatePicture( 150, 150 );
Somebody know what is the solution? I use Visual Studio for mac.
// Create a document.
using( var document = DocX.Create( "AddPicture.docx" ) )
{
// Add a simple image from disk.
var image = document.AddImage( "balloon.jpg" );
// Set Picture Height and Width.
var picture = image.CreatePicture( 150, 150 );
// Insert Picture in paragraph.
var p = document.InsertParagraph( "Here is a simple picture added from disk:" );
p.AppendPicture( picture );
document.Save();
}