drawPixels method

void drawPixels(
  1. BitmapData source,
  2. Rectangle<num> sourceRect,
  3. Point<num> destPoint, [
  4. BlendMode? blendMode,
])

Implementation

void drawPixels(
    BitmapData source, Rectangle<num> sourceRect, Point<num> destPoint,
    [BlendMode? blendMode]) {
  final sourceQuad = source.renderTextureQuad.cut(sourceRect);
  final renderState =
      RenderState(_renderContext, _drawMatrix, 1.0, blendMode);
  renderState.globalMatrix.prependTranslation(destPoint.x, destPoint.y);
  renderState.renderTextureQuad(sourceQuad);
}