MCPcopy Create free account
hub / github.com/cinder/Cinder / copySurface

Method copySurface

blocks/Cairo/src/Cairo.cpp:1202–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200}
1201
1202void Context::copySurface( const SurfaceBase &surface, const Area &srcArea, const ivec2 &dstOffset )
1203{
1204 cairo_set_source_surface( mCairo, const_cast<SurfaceBase&>( surface ).getCairoSurface(), dstOffset.x - srcArea.getX1(), dstOffset.y - srcArea.getY1() );
1205 cairo_rectangle( mCairo, dstOffset.x, dstOffset.y, srcArea.getWidth(), srcArea.getHeight() );
1206 cairo_fill( mCairo );
1207}
1208
1209void Context::copySurface( const SurfaceBase &surface, const Area &srcArea, const Rectf &dstRect )
1210{

Callers 3

drawMethod · 0.80
drawMethod · 0.80
drawImageMethod · 0.80

Calls 3

getCairoSurfaceMethod · 0.80
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by 1

drawMethod · 0.64