Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこのようなことをしたい:
背景が白の画像を撮り、画像の残りの部分にのみ黒の色を適用します。
iOSでこれを行うにはどうすればよいですか?
バーボタンの画像を作成するために似たようなことをしました。おもちゃを使ってコンテキストを作成し、白くペイントし、Quartz 関数を使用してイメージを「マスク」に変換し、コンテキストに描画します。これがうまくいく場合は、下にコメントを残してください。リンクを追跡します。