Lines Matching refs:canvas
58 Various metrics used for decoding x/y values based on the canvas size
62 From the context we get the canvas size and stretching insets, and whether
179 * points at runtime, such as the stretching insets, the canvas size at which the
183 * with possibly different canvas sizes, etc, into one AbstractRegionPainter implementation.</p>
517 * @param canvasSize The size of the canvas used when encoding the various x/y values. May be null.
530 * @param canvasSize The size of the canvas used when encoding the various x/y values. May be null.
536 * For example, if maxH is 2, then we will attempt to scale any cached images up to 2x the canvas
540 * For example, if maxV is 2, then we will attempt to scale any cached images up to 2x the canvas
625 Dimension canvas = ctx.canvasSize;
628 if (w <= (canvas.width * ctx.maxHorizontalScaleFactor) && h <= (canvas.height * ctx.maxVerticalScaleFactor)) {
629 // get image at canvas size
630 VolatileImage img = getImage(g.getDeviceConfiguration(), c, canvas.width, canvas.height, extendedCacheKeys);
636 int leftRight = (w-(canvas.width-(insets.left+insets.right)))/2;
637 int topBottom = (h-(canvas.height-(insets.top+insets.bottom)))/2;