overlaytools.cxx (0702bc67) overlaytools.cxx (6de8cae6)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 53 unchanged lines hidden (view full) ---

62 {
63 // calculate back from internal bitmap's extreme coordinates (the edges)
64 // to logical coordinates. Only use a unified scaling value (getDiscreteUnit(),
65 // the prepared one which expresses how many logic units form a discrete unit)
66 // for this step. This primitive is to be displayed always unscaled (in it's pixel size)
67 // and unrotated, more like a marker
68 const double fLeft(((0.0 - getCenterX()) * getDiscreteUnit()) + getBasePosition().getX());
69 const double fTop(((0.0 - getCenterY()) * getDiscreteUnit()) + getBasePosition().getY());
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 53 unchanged lines hidden (view full) ---

62 {
63 // calculate back from internal bitmap's extreme coordinates (the edges)
64 // to logical coordinates. Only use a unified scaling value (getDiscreteUnit(),
65 // the prepared one which expresses how many logic units form a discrete unit)
66 // for this step. This primitive is to be displayed always unscaled (in it's pixel size)
67 // and unrotated, more like a marker
68 const double fLeft(((0.0 - getCenterX()) * getDiscreteUnit()) + getBasePosition().getX());
69 const double fTop(((0.0 - getCenterY()) * getDiscreteUnit()) + getBasePosition().getY());
70 const double fRight((((aBitmapSize.getWidth() - 1.0) - getCenterX()) * getDiscreteUnit()) + getBasePosition().getX());
71 const double fBottom((((aBitmapSize.getHeight() - 1.0) - getCenterY()) * getDiscreteUnit()) + getBasePosition().getY());
70 const double fRight(((aBitmapSize.getWidth() - getCenterX()) * getDiscreteUnit()) + getBasePosition().getX());
71 const double fBottom(((aBitmapSize.getHeight() - getCenterY()) * getDiscreteUnit()) + getBasePosition().getY());
72
73 // create a BitmapPrimitive2D using those positions
74 basegfx::B2DHomMatrix aTransform;
75
76 aTransform.set(0, 0, fRight - fLeft);
77 aTransform.set(1, 1, fBottom - fTop);
78 aTransform.set(0, 2, fLeft);
79 aTransform.set(1, 2, fTop);

--- 411 unchanged lines hidden ---
72
73 // create a BitmapPrimitive2D using those positions
74 basegfx::B2DHomMatrix aTransform;
75
76 aTransform.set(0, 0, fRight - fLeft);
77 aTransform.set(1, 1, fBottom - fTop);
78 aTransform.set(0, 2, fLeft);
79 aTransform.set(1, 2, fTop);

--- 411 unchanged lines hidden ---