Crop and scale MTLTexture

前端 未结 2 569
我寻月下人不归
我寻月下人不归 2021-01-05 16:56

Can I create a new MTLTexture of dimensions w2/h2 of an existing MTLTexture region x1/y1/w1/h1?

PS: I thought abo

2条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-05 17:13

    MPSImageScale can't be used directly because it is an abstract class. The concrete classes are MPSImageLanczosScale and MPSImageBilinearScale.

提交回复
热议问题