Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
Xamarin DLLs are always built using the latest stable versions of Xamarin.Android, Xamarin.iOS and Xamarin.Mac
respectively. If you face problems with using Aspose.Words in your Xamarin application, please make sure you have the latest Xamarin versions installed. Sometimes Aspose.Words' Xamarin DLLs built with the latest Xamarin version do not work with older versions of Xamarin.
Limitations of .NET Standard 2.0, Xamarin.Android, Xamarin.iOS, And Xamarin.Mac
API compared to .NET API:
Xamarin.Mac
API.SkiaSharp.NativeAssets.Linux
for Ubuntu (it also should work on most Debian-based Linux distributions) or Goelze.SkiaSharp.NativeAssets.AlpineLinux
for Alpine Linux.In Aspose.Words for .NET Standard 2.0, Xamarin.Android, Xamarin.iOS and Xamarin.Mac SkiaSharp.SKBitmap
object is used instead of System.Drawing.Bitmap
in .NET API. The list of affected API:
.NET
// Use System.Drawing.Bitmap.
using (System.Drawing.Bitmap image = new System.Drawing.Bitmap(gTestImagePath))
{
builder.InsertImage(image);
}
.NET Standard 2.0, Xamarin.Android, Xamarin.iOS and Xamarin.Mac
// Insert image into the document from SkiaSharp.SKBitmap object.
using (SkiaSharp.SKBitmap bitmap = SkiaSharp.SKBitmap.Decode(gTestImagePath))
{
builder.InsertImage(bitmap);
}
In Aspose.Words for .NET Standard 2.0, Xamarin.Android, Xamarin.iOS and Xamarin.Mac SkiaSharp.SKCanvas object is used instead of System.Drawing.Graphics object used in .NET API. The list of affected API:
.NET
Document doc = new Document(gTestDocumentPath);
// Render the first page to System.Drawing.Graphics
using (System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(1000, 1000))
{
using (System.Drawing.Graphics gr = System.Drawing.Graphics.FromImage(bitmap))
{
// Apply required transformations to the graphics, rotation for example.
gr.RotateTransform(45);
doc.RenderToSize(0, gr, 0, 0, bitmap.Width, bitmap.Height);
}
// Save output to file.
bitmap.Save(@"C:\Temp\out.png", System.Drawing.Imaging.ImageFormat.Png);
}
.NET Standard 2.0, Xamarin.Android, Xamarin.iOS and Xamarin.Mac
Document doc = new Document(gTestDocumentPath);
// Render the first page to SkiaSharp.SKCanvas
using (SkiaSharp.SKBitmap bitmap = new SkiaSharp.SKBitmap(1000, 1000))
{
using (SkiaSharp.SKCanvas canvas = new SkiaSharp.SKCanvas(bitmap))
{
// Apply required transformations to the canvas, rotation for example.
canvas.RotateDegrees(45);
doc.RotateDegrees(0, canvas, 0, 0, bitmap.Width, bitmap.Height);
}
// Save output to file.
using (SkiaSharp.SKFileWStream fs = new SkiaSharp.SKFileWStream(gOutPath+ "RenderToSize_Out.png"))
{
bitmap.Encode(fs, SkiaSharp.SKEncodedImageFormat.Png, 100);
}
}
To work properly Aspose.Words' Xamarin.iOS API requires Encodings support. When you run your Xamarin.iOS application it is required to add additional supported Encodings.
Xamarin.Mac
Additional RequirementsTo work properly Aspose.Words' Xamarin.Mac
API requires Encodings support. When you run your Xamarin.Mac
application it is required to add additional supported Encodings.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.