Skip to content
This repository was archived by the owner on Jul 31, 2025. It is now read-only.
This repository was archived by the owner on Jul 31, 2025. It is now read-only.

anti-alias problem. thank you author #49

@zqiangang

Description

@zqiangang

thank you!
hello sir , i find some problem that the anti-alias algorithm,

  skity::Paint p;
  p.setStyle(skity::Paint::Style::kStroke_Style);
  p.setStrokeWidth(10);


  canvas->drawLine(100,100,300,300, p);

  canvas->drawCircle(100,100,100, p);

// create path

skity::Path path;
path.moveTo(199, 34);
path.lineTo(253, 143);
path.lineTo(374, 160);
path.lineTo(287, 244);
path.lineTo(307, 365);
path.lineTo(199, 309);
path.lineTo(97, 365);
path.lineTo(112, 245);
path.lineTo(26, 161);
path.lineTo(146, 143);
path.close();
canvas->drawPath(path, paint);

i try draw a circle , sloping line and a star( example code ) , but i find all of shape is very solid for every pixel and i can't find any effect of anti-alias for pixel

the photo :
屏幕截图 2023-08-18 172619

i set the paint to anyti-alias but no effect at all,
p.setAntiAlias(true);
see: this a new photo
222

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions