PictureFormat does not exist in 4.0.0 (How do I migrate my code?)

I am using the following two lines in my code and when upgrading from 3.7.1 to 4.0.0 beta I receive the error below.

Aspose.Words.PictureFormat pictureformat = null;

Builder.InsertImage(tiffManager.GetSpecificPage(i), 540, 720, pictureformat); // pixel = 1/72 of an inch.

C:\AppSoft\Visual Studio Projects\FileTrax\Modules\Merge\Merges.cs(751): The type or namespace name 'PictureFormat' does not exist in the class or namespace 'Aspose.Words' (are you missing an assembly reference?)

C:\AppSoft\Visual Studio Projects\FileTrax\Modules\Merge\Merges.cs(752): The name 'pictureformat' does not exist in the class or namespace 'AppSoft.FileTrax.Merges'

Thank you.

1. PictureFormat is no longer passed into InsertImage methods. So in your case just remove the parameter.

2. PictureFormat class has been removed. If you need to set brightness, color mode etc of a picture you are to use the Shape.ImageData object.

DocumentBuilder.InsertImage returns you a Shape object.