Skip to content

SKImageFilter.CreatePaint is missing in 3.0.0-alpha.1.7 #2569

Answered by mattleibow
wieslawsoltes asked this question in Q&A
Discussion options

You must be logged in to vote

According to the changelog from Google

  • Removed previously deprecated SkImageFilters::Paint factory. Use SkImageFilters::Shader instead.

I think the paint was really deceiving as only the Shader and Color properties were ever used. Think:

var shader = paint.Shader ?? SKShader.CreateColor(paint.ColorF);
var filter = SKImageFilter.CreateShader(shader, paint.IsDither);

google/skia@7d0f853
google/skia@89f8ba6

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by wieslawsoltes
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
upgrading/3.x Issues and discussions relating to the upgrade from 2.x to 3.x
2 participants
Converted from issue

This discussion was converted from issue #2566 on August 19, 2023 20:11.