Home | History | Annotate | Download | only in utils

Lines Matching refs:margins

255                              const SkBitmap& bitmap, const SkIRect& margins,
258 0, margins.fLeft, bitmap.width() - margins.fRight, bitmap.width()
261 0, margins.fTop, bitmap.height() - margins.fBottom, bitmap.height()
264 dst.fLeft, dst.fLeft + SkIntToScalar(margins.fLeft),
265 dst.fRight - SkIntToScalar(margins.fRight), dst.fRight
268 dst.fTop, dst.fTop + SkIntToScalar(margins.fTop),
269 dst.fBottom - SkIntToScalar(margins.fBottom), dst.fBottom
273 dstX[1] = dstX[0] + (dstX[3] - dstX[0]) * SkIntToScalar(margins.fLeft) /
274 (SkIntToScalar(margins.fLeft) + SkIntToScalar(margins.fRight));
279 dstY[1] = dstY[0] + (dstY[3] - dstY[0]) * SkIntToScalar(margins.fTop) /
280 (SkIntToScalar(margins.fTop) + SkIntToScalar(margins.fBottom));
302 const SkBitmap& bitmap, const SkIRect& margins,
314 xDivs[0] = margins.fLeft;
315 xDivs[1] = bitmap.width() - margins.fRight;
316 yDivs[0] = margins.fTop;
317 yDivs[1] = bitmap.height() - margins.fBottom;
320 xDivs[0] = bitmap.width() * margins.fLeft /
321 (margins.fLeft + margins.fRight);
325 yDivs[0] = bitmap.height() * margins.fTop /
326 (margins.fTop + margins.fBottom);
333 drawNineViaRects(canvas, bounds, bitmap, margins, paint);