Kaydet (Commit) 45d011ba authored tarafından Armin Le Grand's avatar Armin Le Grand Kaydeden (comit) Caolán McNamara

Resolves: #i121153# adapted RenderBitmapPrimitive2D_self...

bitmap transformation to metafile case where no destination bitmap size is
given

(cherry picked from commit 1f0b83f0)

Change-Id: I12ece7aa36df6a9895303af59693de3b9813bb17
üst 29474304
...@@ -167,6 +167,11 @@ namespace drawinglayer ...@@ -167,6 +167,11 @@ namespace drawinglayer
// take a rotation of 45 degrees (sqrt(2)) as maximum expansion into account // take a rotation of 45 degrees (sqrt(2)) as maximum expansion into account
const Size aSourceSizePixel(rBitmapEx.GetSizePixel()); const Size aSourceSizePixel(rBitmapEx.GetSizePixel());
const double fMaximumArea( const double fMaximumArea(
// #i121153# With Metafile, aOutputRectPixel may be empty and a virtual
// maximum quadratic size has to be used
bRecordToMetaFile ? 500000.0 :
(double)aOutputRectPixel.getWidth() * (double)aOutputRectPixel.getWidth() *
(double)aOutputRectPixel.getHeight() * (double)aOutputRectPixel.getHeight() *
1.4142136); // 1.4142136 taken as sqrt(2.0) 1.4142136); // 1.4142136 taken as sqrt(2.0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment