Skip to content

How to remove blur on scaling for context2d drawings #1236

Answered by chrispytoes
chrispytoes asked this question in Q&A
Discussion options

You must be logged in to vote

Try to use graphics { } and specify render to use GPU

@soywiz Ah, well I really overcomplicated that thanks, I think I saw the bitmap method somewhere in a sample.

graphics {
    stroke(Colors.BLACK) {
        fill(Colors.BLUE) {
            moveTo(0.0, 0.0)
            lineTo(64.0, 32.0)
            lineTo(0.0, 64.0)
            lineTo(0.0, 0.0)
            close()
        }
    }
}.anchor(Anchor.CENTER)

This works!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@soywiz
Comment options

Answer selected by soywiz
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
Converted from issue

This discussion was converted from issue #1235 on January 29, 2023 19:51.