flxSharp.flxSharp.FlxSprite.stamp C# (CSharp) Méthode

stamp() public méthode

This function draws or stamps one FlxSprite onto another. This function is NOT intended to replace draw()!
public stamp ( FlxSprite brush, int x, int y ) : void
brush FlxSprite The image you want to use as a brush or stamp or pen or whatever.
x int The X coordinate of the brush's top left corner on this sprite.
y int They Y coordinate of the brush's top left corner on this sprite.
Résultat void
        public void stamp(FlxSprite brush, int x = 0, int y = 0)
        {
            throw new NotImplementedException();

            /*
            Brush.drawFrame();
            var bitmapData:BitmapData = Brush.framePixels;

            //Simple draw
            if(((Brush.angle == 0) || (Brush._bakedRotation > 0)) && (Brush.scale.x == 1) && (Brush.scale.y == 1) && (Brush.blend == null))
            {
                _flashPoint.x = X;
                _flashPoint.y = Y;
                _flashRect2.width = bitmapData.width;
                _flashRect2.height = bitmapData.height;
                _pixels.copyPixels(bitmapData,_flashRect2,_flashPoint,null,null,true);
                _flashRect2.width = _pixels.width;
                _flashRect2.height = _pixels.height;
                calcFrame();
                return;
            }

            //Advanced draw
            _matrix.identity();
            _matrix.translate(-Brush.origin.x,-Brush.origin.y);
            _matrix.scale(Brush.scale.x,Brush.scale.y);
            if(Brush.angle != 0)
                _matrix.rotate(Brush.angle * 0.017453293);
            _matrix.translate(X+Brush.origin.x,Y+Brush.origin.y);
            _pixels.draw(bitmapData,_matrix,null,Brush.blend,null,Brush.antialiasing);
            calcFrame();
            */
        }