HomeSort by relevance Sort by last modified time
    Searched full:dstrect (Results 1 - 25 of 77) sorted by null

1 2 3 4

  /external/skia/gm/
nocolorbleed.cpp 45 SkRect dstRect;
50 dstRect.setXYWH(SkIntToScalar(0), SkIntToScalar(0)
52 canvas->drawBitmapRect(sprite, &srcRect, dstRect, &paint);
53 dstRect.setXYWH(SkIntToScalar(100), SkIntToScalar(0)
55 canvas->drawBitmapRect(sprite, &srcRect, dstRect);
58 dstRect.setXYWH(SkIntToScalar(25), SkIntToScalar(125)
60 canvas->drawBitmapRect(sprite, &srcRect, dstRect, &paint);
61 dstRect.setXYWH(SkIntToScalar(125), SkIntToScalar(125)
63 canvas->drawBitmapRect(sprite, &srcRect, dstRect);
  /external/skia/samplecode/
SampleTextureDomain.cpp 42 SkRect dstRect;
49 dstRect.setXYWH(5.0f, 5.0f, 305.0f, 305.0f);
50 canvas->drawBitmapRect(fBM, &srcRect, dstRect, &paint);
63 dstRect.setXYWH(1.0f, 1.0f, 3.0f, 3.0f);
64 secondCanvas.drawBitmapRect(fBM, &srcRect, dstRect, &paint);
69 dstRect.setXYWH(405.0f, 5.0f, 305.0f, 305.0f);
70 canvas->drawBitmapRect(deviceBitmap, &srcRect, dstRect, &paint);
  /external/chromium/chrome/browser/ui/cocoa/
image_utils.mm 9 - (void)drawInRect:(NSRect)dstRect
25 dstRect.origin.y -= NSMaxY(dstRect) + NSMinY(dstRect);
28 [self drawInRect:dstRect
image_utils.h 19 - (void)drawInRect:(NSRect)dstRect
  /sdk/assetstudio/src/com/android/assetstudiolib/
Util.java 321 * @param dstRect The destination rectangle in the destination canvas into which to draw the
324 public static void drawCenterInside(Graphics2D g, BufferedImage source, Rectangle dstRect) {
327 if (srcWidth * 1.0 / srcHeight > dstRect.width * 1.0 / dstRect.height) {
328 final int scaledWidth = Math.max(1, dstRect.width);
329 final int scaledHeight = Math.max(1, dstRect.width * srcHeight / srcWidth);
332 dstRect.x,
333 dstRect.y + (dstRect.height - scaledHeight) / 2,
334 dstRect.x + dstRect.width
    [all...]
  /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);
  /external/qemu/distrib/sdl-1.2.12/src/video/
SDL_stretch.c 174 SDL_Surface *dst, SDL_Rect *dstrect)
211 if ( dstrect ) {
212 if ( (dstrect->x < 0) || (dstrect->y < 0) ||
213 ((dstrect->x+dstrect->w) > dst->w) ||
214 ((dstrect->y+dstrect->h) > dst->h) ) {
223 dstrect = &full_dst;
250 inc = (srcrect->h << 16) / dstrect->h
    [all...]
SDL_yuv.c 83 int SDL_DisplayYUVOverlay(SDL_Overlay *overlay, SDL_Rect *dstrect)
89 if ( overlay == NULL || dstrect == NULL ) {
90 SDL_SetError("Passed NULL overlay or dstrect");
99 dstx = dstrect->x;
100 dsty = dstrect->y;
101 dstw = dstrect->w;
102 dsth = dstrect->h;
104 srcw += (dstx * overlay->w) / dstrect->w;
106 srcx -= (dstx * overlay->w) / dstrect->w;
111 srcw -= (extra * overlay->w) / dstrect->w
    [all...]
SDL_surface.c 408 SDL_Surface *dst, SDL_Rect *dstrect)
431 hw_dstrect = *dstrect;
434 dstrect = &hw_dstrect;
440 return(do_blit(src, srcrect, dst, dstrect));
445 SDL_Surface *dst, SDL_Rect *dstrect)
461 if ( dstrect == NULL ) {
463 dstrect = &fulldst;
474 dstrect->x -= srcx;
485 dstrect->y -= srcy;
503 dx = clip->x - dstrect->x
    [all...]
SDL_RLEaccel_c.h 28 SDL_Surface *dst, SDL_Rect *dstrect);
30 SDL_Surface *dst, SDL_Rect *dstrect);
  /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/qemu/distrib/sdl-1.2.12/src/video/cybergfx/
SDL_cgxaccel.c 31 SDL_Surface *dst, SDL_Rect *dstrect);
204 SDL_Surface *dst, SDL_Rect *dstrect)
215 SDL_RastPort,dstrect->x+SDL_Window->BorderLeft,dstrect->y+SDL_Window->BorderTop,
228 &temprp,dstrect->x,dstrect->y,
235 BBRP(src->hwdata->bmap,srcrect->x,srcrect->y,SDL_RastPort,dstrect->x+SDL_Window->BorderLeft,dstrect->y+SDL_Window->BorderTop,srcrect->w,srcrect->h,0xc0);
238 BBB(src->hwdata->bmap,srcrect->x,srcrect->y,dst->hwdata->bmap,dstrect->x,dstrect->y,srcrect->w,srcrect->h,0xc0,0xff,NULL)
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/video/fbcon/
SDL_fb3dfx.c 94 SDL_Surface *dst, SDL_Rect *dstrect)
125 dstX = dstrect->x;
126 dstY = dstrect->y;
132 srcX += (dstrect->w - 1);
133 dstX += (dstrect->w - 1);
137 srcY += (dstrect->h - 1);
138 dstY += (dstrect->h - 1);
158 tdfx_out32(DSTSIZE, dstrect->w | (dstrect->h << 16));
SDL_fbmatrox.c 121 SDL_Surface *dst, SDL_Rect *dstrect)
134 return(src->map->sw_blit(src, srcrect, dst, dstrect));
146 w = dstrect->w;
147 h = dstrect->h;
154 dstX += dstrect->x;
155 dstY += dstrect->y;
SDL_fbriva.c 112 SDL_Surface *dst, SDL_Rect *dstrect)
122 return(src->map->sw_blit(src, srcrect, dst, dstrect));
134 dstW = dstrect->w;
135 dstH = dstrect->h;
142 dstX += dstrect->x;
143 dstY += dstrect->y;
  /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()) {
  /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/qemu/distrib/sdl-1.2.12/src/video/windx5/
SDL_dx5yuv.c 254 RECT srcrect, dstrect; local
261 dstrect.top = SDL_bounds.top+dst->y;
262 dstrect.left = SDL_bounds.left+dst->x;
263 dstrect.bottom = dstrect.top+dst->h;
264 dstrect.right = dstrect.left+dst->w;
267 SDL_primary, &dstrect, DDOVER_SHOW, NULL);
273 result = IDirectDrawSurface3_Blt(SDL_primary, &dstrect, surface, &srcrect,
  /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/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);
  /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/cg/
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);

Completed in 685 milliseconds

1 2 3 4