Symptoms
The exception can occur, for example, when you call a method or access property of an Image object obtained via ImageDocument::PreviewImage.
Cause
An open image contains this image plane, only if the IPrepareImageMode::CreatePreview property was set to TRUE during image preparation. Otherwise, the object accessed through this property is NULL.
Resolution
Set the IPrepareImageMode::CreatePreview property to TRUE. For example:
// C# code
FREngine.PrepareImageMode pim = engineLoader.Engine.CreatePrepareImageMode();
pim.CreatePreview = true;
document.AddImageFile( imagePath, pim, null );
FREngine.IHandle handle = document.Pages.Item(0).ImageDocument.PreviewImage.GetBitmap(null);
Comments
0 comments
Please sign in to leave a comment.