🤖 AIによる機械翻訳(非公式) — これは OpenCV 4.13.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。
Package org.opencv.imgcodecs
クラス Animation
- java.lang.Object
-
- org.opencv.imgcodecs.Animation
public class Animation extends java.lang.Object複数のフレームからなるアニメーションを表す。Animation構造体は、アニメーション形式(例: GIF, AVIF, APNG, WebP)に由来するようなアニメーションシーケンスのデータを格納・管理するために設計されている。ループ再生、背景色設定、フレームのタイミング、フレームの格納をサポートする。
-
-
フィールドの要約
フィールド Modifier and Type Field Description protected longnativeObj
-
コンストラクタの要約
コンストラクタ Modifier Constructor Description Animation()Constructs an Animation object with optional loop count and background color.Animation​(int loopCount)Constructs an Animation object with optional loop count and background color.Animation​(int loopCount, Scalar bgColor)Constructs an Animation object with optional loop count and background color.protectedAnimation​(long addr)
-
メソッドの要約
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド Modifier and Type Method Description static Animation__fromPtr__​(long addr)Scalarget_bgcolor()MatOfIntget_durations()java.util.List<Mat>get_frames()intget_loop_count()Matget_still_image()longgetNativeObjAddr()voidset_bgcolor​(Scalar bgcolor)voidset_durations​(MatOfInt durations)voidset_frames​(java.util.List<Mat> frames)voidset_loop_count​(int loop_count)voidset_still_image​(Mat still_image)
-
-
-
コンストラクタの詳細
-
Animation
protected Animation​(long addr)
-
Animation
public Animation​(int loopCount, Scalar bgColor)Constructs an Animation object with optional loop count and background color.- 引数:
loopCount- An integer representing the number of times the animation should loop:0(デフォルト)は無限ループを示し、アニメーションが連続して再生され続けることを意味する。- 正の値は有限の繰り返し回数を表し、アニメーションを限られた回数だけ再生できる。
- 負の値、または
0xffff(65535)の最大値を超える値が指定された場合は、有効な範囲を保つために0(無限ループ)にリセットされる。
bgColor- AScalarobject representing the background color in BGR format:- デフォルトは
Scalar()で、空の色を表す(サポートされている場合は通常は透明)。 - この背景色は、透明度を持つフレームの背後に単色の塗りつぶしを提供し、一貫した表示外観を保証する。
- デフォルトは
-
Animation
public Animation​(int loopCount)
Constructs an Animation object with optional loop count and background color.- 引数:
loopCount- An integer representing the number of times the animation should loop:0(デフォルト)は無限ループを示し、アニメーションが連続して再生され続けることを意味する。- 正の値は有限の繰り返し回数を表し、アニメーションを限られた回数だけ再生できる。
- 負の値、または
0xffff(65535)の最大値を超える値が指定された場合は、有効な範囲を保つために0(無限ループ)にリセットされる。
- デフォルトは
Scalar()で、空の色を表す(サポートされている場合は通常は透明)。 - この背景色は、透明度を持つフレームの背後に単色の塗りつぶしを提供し、一貫した表示外観を保証する。
-
Animation
public Animation()
Constructs an Animation object with optional loop count and background color.0(デフォルト)は無限ループを示し、アニメーションが連続して再生され続けることを意味する。- 正の値は有限の繰り返し回数を表し、アニメーションを限られた回数だけ再生できる。
- 負の値、または
0xffff(65535)の最大値を超える値が指定された場合は、有効な範囲を保つために0(無限ループ)にリセットされる。
- デフォルトは
Scalar()で、空の色を表す(サポートされている場合は通常は透明)。 - この背景色は、透明度を持つフレームの背後に単色の塗りつぶしを提供し、一貫した表示外観を保証する。
-
-
メソッドの詳細
-
getNativeObjAddr
public long getNativeObjAddr()
-
__fromPtr__
public static Animation __fromPtr__​(long addr)
-
get_loop_count
public int get_loop_count()
-
set_loop_count
public void set_loop_count​(int loop_count)
-
get_bgcolor
public Scalar get_bgcolor()
-
set_bgcolor
public void set_bgcolor​(Scalar bgcolor)
-
get_durations
public MatOfInt get_durations()
-
set_durations
public void set_durations​(MatOfInt durations)
-
get_frames
public java.util.List<Mat> get_frames()
-
set_frames
public void set_frames​(java.util.List<Mat> frames)
-
get_still_image
public Mat get_still_image()
-
set_still_image
public void set_still_image​(Mat still_image)
-
-