HomeSort by relevance Sort by last modified time
    Searched refs:dstRect (Results 1 - 25 of 50) sorted by null

1 2

  /external/skia/gm/
nocolorbleed.cpp 48 SkRect dstRect;
53 dstRect.setXYWH(SkIntToScalar(0), SkIntToScalar(0)
55 canvas->drawBitmapRect(sprite, &srcRect, dstRect, &paint);
56 dstRect.setXYWH(SkIntToScalar(100), SkIntToScalar(0)
58 canvas->drawBitmapRect(sprite, &srcRect, dstRect);
61 dstRect.setXYWH(SkIntToScalar(25), SkIntToScalar(125)
63 canvas->drawBitmapRect(sprite, &srcRect, dstRect, &paint);
64 dstRect.setXYWH(SkIntToScalar(125), SkIntToScalar(125)
66 canvas->drawBitmapRect(sprite, &srcRect, dstRect);
drawbitmaprect.cpp 84 SkRect dstRect = { 0, 0, SkIntToScalar(64), SkIntToScalar(64)};
116 canvas->drawBitmapRect(fLargeBitmap, &srcRect, dstRect);
123 SkScalar baseline = dstRect.height() +
131 canvas->drawRect(dstRect, blackPaint);
133 canvas->translate(dstRect.width() + SK_Scalar1 * kPadX, 0);
135 if ((dstRect.width() + kPadX) * rowCount > gSize) {
137 canvas->translate(0, dstRect.height() + SK_Scalar1 * kPadY);
  /external/webkit/Source/WebCore/platform/graphics/
GeneratedImage.cpp 37 void GeneratedImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace, CompositeOperator compositeOp)
41 context->clip(dstRect);
42 context->translate(dstRect.x(), dstRect.y());
43 if (dstRect.size() != srcRect.size())
44 context->scale(FloatSize(dstRect.width() / srcRect.width(), dstRect.height() / srcRect.height()));
Image.cpp 79 void Image::fillWithSolidColor(GraphicsContext* ctxt, const FloatRect& dstRect, const Color& color, ColorSpace styleColorSpace, CompositeOperator op)
86 ctxt->fillRect(dstRect, color, styleColorSpace);
90 static inline FloatSize calculatePatternScale(const FloatRect& dstRect, const FloatRect& srcRect, Image::TileRule hRule, Image::TileRule vRule)
95 scaleX = dstRect.width() / srcRect.width();
97 scaleY = dstRect.height() / srcRect.height();
148 void Image::drawTiled(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRect, TileRule hRule, TileRule vRule, ColorSpace styleColorSpace, CompositeOperator op)
151 fillWithSolidColor(ctxt, dstRect, solidColor(), styleColorSpace, op);
161 FloatSize scale = calculatePatternScale(dstRect, srcRect, hRule, vRule);
169 hPhase -= fmodf(dstRect.width(), scale.width() * srcRect.width()) / 2.0f;
171 vPhase -= fmodf(dstRect.height(), scale.height() * srcRect.height()) / 2.0f
    [all...]
Image.h 164 static void fillWithSolidColor(GraphicsContext*, const FloatRect& dstRect, const Color&, ColorSpace styleColorSpace, CompositeOperator);
168 virtual void drawFrameMatchingSourceSize(GraphicsContext*, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator) { }
170 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator) = 0;
171 void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatPoint& srcPoint, const FloatSize& tileSize, ColorSpace styleColorSpace, CompositeOperator);
172 void drawTiled(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, TileRule hRule, TileRule vRule, ColorSpace styleColorSpace, CompositeOperator);
GeneratedImage.h 60 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator);
  /sdk/assetstudio/src/com/android/assetstudiolib/
Util.java 325 * @param dstRect The destination rectangle in the destination canvas into which to draw the
328 public static void drawCenterInside(Graphics2D g, BufferedImage source, Rectangle dstRect) {
331 if (srcWidth * 1.0 / srcHeight > dstRect.width * 1.0 / dstRect.height) {
332 final int scaledWidth = Math.max(1, dstRect.width);
333 final int scaledHeight = Math.max(1, dstRect.width * srcHeight / srcWidth);
336 dstRect.x,
337 dstRect.y + (dstRect.height - scaledHeight) / 2,
338 dstRect.x + dstRect.width
    [all...]
  /external/skia/samplecode/
SampleTextureDomain.cpp 50 SkRect dstRect;
57 dstRect.setXYWH(5.0f, 5.0f, 305.0f, 305.0f);
58 canvas->drawBitmapRect(fBM, &srcRect, dstRect, &paint);
71 dstRect.setXYWH(1.0f, 1.0f, 3.0f, 3.0f);
72 secondCanvas.drawBitmapRect(fBM, &srcRect, dstRect, &paint);
77 dstRect.setXYWH(405.0f, 5.0f, 305.0f, 305.0f);
78 canvas->drawBitmapRect(deviceBitmap, &srcRect, dstRect, &paint);
83 dstRect.setXYWH(5.0f, 405.0f, 305.0f, 305.0f);
90 canvas->drawBitmapRect(deviceBitmap, &srcRect, dstRect, &paint);
103 dstRect.setXYWH(-150.0f, -150.0f, 300.0f, 300.0f)
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/cairo/
ImageCairo.cpp 99 FloatRect dstRect(dst);
101 if (dstRect.width() == 0.0f || dstRect.height() == 0.0f ||
112 fillWithSolidColor(context, dstRect, solidColor(), styleColorSpace, op);
134 float scaleX = srcRect.width() / dstRect.width();
135 float scaleY = srcRect.height() / dstRect.height();
142 cairo_t* shadowContext = shadow->beginShadowLayer(context, dstRect);
144 cairo_translate(shadowContext, dstRect.x(), dstRect.y());
146 cairo_rectangle(shadowContext, 0, 0, dstRect.width(), dstRect.height())
    [all...]
  /external/chromium/chrome/browser/ui/cocoa/
image_utils.h 19 - (void)drawInRect:(NSRect)dstRect
  /external/webkit/Source/WebCore/platform/graphics/chromium/
GLES2Canvas.h 88 void drawTexturedRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace, CompositeOperator);
90 void drawTexturedRect(Texture*, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace, CompositeOperator);
92 void drawTexturedRect(Texture*, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha, ColorSpace, CompositeOperator, bool clip);
105 void drawTexturedRectTile(Texture* texture, int tile, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha);
106 void drawTexturedQuad(const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha);
107 void drawTexturedQuadMitchell(const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform&, float alpha);
108 void convolveRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, float imageIncrement[2], const float* kernel, int kernelWidth);
GLES2Canvas.cpp 395 void GLES2Canvas::drawTexturedRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace colorSpace, CompositeOperator compositeOp)
405 drawTexturedQuad(textureSize, srcRect, dstRect, m_state->m_ctm, m_state->m_alpha);
408 void GLES2Canvas::drawTexturedRect(Texture* texture, const FloatRect& srcRect, const FloatRect& dstRect, ColorSpace colorSpace, CompositeOperator compositeOp)
410 drawTexturedRect(texture, srcRect, dstRect, m_state->m_ctm, m_state->m_alpha, colorSpace, compositeOp, m_state->clippingEnabled());
414 void GLES2Canvas::drawTexturedRect(Texture* texture, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform& transform, float alpha, ColorSpace colorSpace, CompositeOperator compositeOp, bool clip)
426 drawTexturedRectTile(texture, tiles.tileIndex(x, y), srcRect, dstRect, transform, alpha);
430 void GLES2Canvas::drawTexturedRectTile(Texture* texture, int tile, const FloatRect& srcRect, const FloatRect& dstRect, const AffineTransform& transform, float alpha)
432 if (dstRect.isEmpty())
441 tiles.intersectDrawQuad(srcRect, dstRect, tile, &srcRectClippedInTileSpace, &dstRectIntersected);
448 void GLES2Canvas::convolveRect(unsigned texture, const IntSize& textureSize, const FloatRect& srcRect, const FloatRect& dstRect, float imageIncrement[2], const float* kernel, int kernelWidth
    [all...]
  /external/webkit/Source/WebCore/platform/graphics/haiku/
ImageHaiku.cpp 112 BRect dstRect(dst);
117 ctxt->platformContext()->DrawBitmapAsync(image, srcRect, dstRect);
124 void Image::drawPattern(GraphicsContext* context, const FloatRect& tileRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace, CompositeOperator op, const FloatRect& dstRect)
152 context->clip(enclosingIntRect(dstRect));
155 while (currentW < dstRect.x() + dstRect.width()) {
157 while (currentH < dstRect.y() + dstRect.height()) {
StillImageHaiku.h 48 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator);
  /external/webkit/Source/WebCore/platform/graphics/cg/
PDFDocumentImage.h 66 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator);
PDFDocumentImage.cpp 156 void PDFDocumentImage::draw(GraphicsContext* context, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace, CompositeOperator op)
165 float hScale = dstRect.width() / srcRect.width();
166 float vScale = dstRect.height() / srcRect.height();
171 CGContextTranslateCTM(context->platformContext(), dstRect.x() - srcRect.x() * hScale, dstRect.y() - srcRect.y() * vScale);
  /external/webkit/Source/WebCore/platform/graphics/qt/
StillImageQt.h 54 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator);
  /external/webkit/Source/WebCore/platform/graphics/skia/
BitmapImageSingleFrameSkia.h 76 virtual void draw(GraphicsContext*, const FloatRect& dstRect, const FloatRect& srcRect, ColorSpace styleColorSpace, CompositeOperator);
  /external/webkit/Source/WebCore/platform/graphics/wx/
ImageWx.cpp 180 void Image::drawPattern(GraphicsContext* ctxt, const FloatRect& srcRect, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace, CompositeOperator, const FloatRect& dstRect)
196 ctxt->clip(IntRect(dstRect.x(), dstRect.y(), dstRect.width(), dstRect.height()));
218 while ( currentW < dstRect.width() && currentW < clientSize.x - origin.x ) {
219 while ( currentH < dstRect.height() && currentH < clientSize.y - origin.y) {
227 context->Blit((wxCoord)dstRect.x() + currentW, (wxCoord)dstRect.y() + currentH,
  /external/webkit/Source/WebCore/platform/graphics/win/
GraphicsContextCairoWin.cpp 123 void GraphicsContext::releaseWindowsContext(HDC hdc, const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap)
131 if (dstRect.isEmpty())
146 drawBitmapToContext(m_data, platformContext()->cr(), pixelData, IntSize(dstRect.x(), dstRect.height() + dstRect.y()));
GraphicsContextWin.cpp 100 HDC GraphicsContext::getWindowsContext(const IntRect& dstRect, bool supportAlphaBlend, bool mayCreateBitmap)
104 if (dstRect.isEmpty())
108 BitmapInfo bitmapInfo = BitmapInfo::create(dstRect.size());
126 XFORM xform = TransformationMatrix().translate(-dstRect.x(), -dstRect.y());
ImageCGWin.cpp 89 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator compositeOp)
97 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), styleColorSpace, compositeOp);
105 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), styleColorSpace, compositeOp);
ImageCairoWin.cpp 95 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator compositeOp)
103 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, srcSize.width(), srcSize.height()), ColorSpaceDeviceRGB, compositeOp);
111 draw(ctxt, dstRect, FloatRect(0.0f, 0.0f, imageSize.width(), imageSize.height()), ColorSpaceDeviceRGB, compositeOp);
  /external/webkit/Source/WebCore/platform/graphics/gpu/
TilingData.cpp 205 void TilingData::intersectDrawQuad(const FloatRect& srcRect, const FloatRect& dstRect, int tile,
229 srcRectIntersectedNormX * dstRect.width() + dstRect.x(),
230 srcRectIntersectedNormY * dstRect.height() + dstRect.y(),
231 srcRectIntersectedNormW * dstRect.width(),
232 srcRectIntersectedNormH * dstRect.height());
  /external/webkit/Source/WebCore/platform/graphics/wince/
ImageWinCE.cpp 91 void BitmapImage::drawFrameMatchingSourceSize(GraphicsContext* ctxt, const FloatRect& dstRect, const IntSize& srcSize, ColorSpace styleColorSpace, CompositeOperator compositeOp)
101 draw(ctxt, dstRect, FloatRect(0, 0, srcSize.width(), srcSize.height()), styleColorSpace, compositeOp);
108 draw(ctxt, dstRect, FloatRect(0, 0, imageSize.width(), imageSize.height()), styleColorSpace, compositeOp);
111 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& dstRect, const FloatRect& srcRectIn, ColorSpace styleColorSpace, CompositeOperator compositeOp)
117 fillWithSolidColor(ctxt, dstRect, solidColor(), styleColorSpace, compositeOp);
130 bmp->draw(ctxt, enclosingIntRect(dstRect), intSrcRect, styleColorSpace, compositeOp);

Completed in 478 milliseconds

1 2