Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

채우기 기능 #11

Open
disjukr opened this issue Jul 16, 2013 · 0 comments
Open

채우기 기능 #11

disjukr opened this issue Jul 16, 2013 · 0 comments

Comments

@disjukr
Copy link
Member

disjukr commented Jul 16, 2013

bucket
https://twitter.com/_isca_0628/status/357046060641816576

포토샵의 채우기 기능을 구현하려면..

  1. tolerance 기준으로 채워질 수 있는 영역 매핑하기.
  2. contiguous(인접) 옵션이 활성화되어있으면 클릭한 지점부터 1번에서 만든 맵에 floodfill(해당하는 네이티브 구현이 없어서 직접 해야함. 느립니다ㅠㅠ).
  3. 1, 2번을 거쳐 처리된 맵의 알파 채널에 안티앨리어싱 적용 후(아아.. 느립니다ㅠㅠㅠ) 나머지 채널은 foreground(전경) 색을 매핑.

아니면 윈도 그림판처럼 floodfill만 구현해도 되겠지만 이건 좀 많이 구림(...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant