Skip to content

Upgrading from 3.0.2 to 3.1.5 causes draws to be at 0.0. #2816

Discussion options

You must be logged in to vote

Sorry @ChadJessup I really meant to look at this sooner.

There was a lot of confusion plus some broken behavior prior to v3.1.1 which were causing issues. I believe we have solved them all though now.

In your code example you are using the dstPoint parameter to populate both the location on the background at which to draw the foreground and the location on the foreground rectangle at which to sample the foreground.

Rectangle dstRectangle = new()
{
    Height = src.Height,
    Width = src.Width,
    X = dstPoint.X,
    Y = dstPoint.Y,
};

dstSurface.Image.Mutate(ctx =>
{
    ctx.DrawImage(
        src,
        dstPoint,
        dstRectangle,
        colorBlending: PixelColorBlendingMode.No…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@JimBobSquarePants
Comment options

Answer selected by ChadJessup
@ChadJessup
Comment options

@JimBobSquarePants
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants