Before calling PXCV_DrawpageToDC I get the page dimensions via PXCV_GetPageDimensions.
This results in a width of 7017 points and a height of 9933 points. Drawing it to a bitmap and using it as a input parameter for PXCV_DrawPageToDC results in a 'frozen' state. The function will not give a result.
Code sample in Delphi (2010), used DPI is 300:
Code: Select all
PXCV_GetPageDimensions(aPXCVDocument, 0, lPagePointsWidth, lPagePointsHeight);
lBitMap := TBitmap.Create;
try
lBitmap.Canvas.Lock;
try
lRect := Rect(0, 0, Round((lPagePointsWidth / 72) * DPI), Round((lPagePointsHeight / 72) * DPI));
lBitMap.Height := lRect.Bottom;
lBitMap.Width := lRect.Right;
lPXVParams.WholePageRect := @lRect;
lPXVParams.DrawRect := nil;
lPXVParams.Flags := 0;
lPXVParams.RenderTarget := 0;
PXCV_DrawPageToDC(aPXCVDocument, idx, lBitmap.Canvas.Handle, lPXVParams);
finally
lBitmap.Canvas.UnLock;
end;
finally
lBitMap.Free;
end;
OS: windows 8.1
Memory: 16 GB
Processor: Intel Xeon W3565 Quad Core @ 3.20 GHz
Programming language: Delphi (2010)
Is there a maximum size for a bitmap to get a result of PXCV_DrawpageToDC?
Any help is appreciated.