2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Jetpack Composeのプレビューを画像として取り出す

Last updated at Posted at 2025-03-13

Jetpack Compose のプレビューではプレビューで表示されているものをそのまま PNG の画像として取り出すことができます。

方法

Android Studio で任意のプレビューに対してメニューを表示させて、「Copy Image」を選択するとクリップボードに PNG 形式で保持されます。

スクリーンショット 2025-03-13 15.17.15.png

あとは Qiita なり任意の場所でペーストすれば PNG の画像ファイルになります。

image.png

showSystemUi = truedevice が設定されている場合でも設定をそのままにプレビューで表示されたままの内容でコピー可能です。

image.png

リンク

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?