![]() |
![]() |
![]() |
Cutterリファレンスマニュアル | ![]() |
---|---|---|---|---|
Top | 説明 |
void gdkcut_pixbuf_assert_equal (const GdkPixbuf *expected, const GdkPixbuf *actual, guint threshold);
void gdkcut_pixbuf_assert_equal (const GdkPixbuf *expected, const GdkPixbuf *actual, guint threshold);
expected
== actual
が成り立つときパスします。もし、対応するピクセル値のそれぞれの違いがしきい値以内の場合はexpected
とactual
は同じ画像として扱います。
もし、しきい値が3、expected
の(1, 1)のピクセル値が127、actual
の(1, 1)のピクセル値が131とすると、actual
とexpected
は等しくありません。もし、actual
の(1, 1)のピクセル値が130ならactual
とexpected
は等しいかもしれません。(等しくなるためには、他のすべての対応するピクセル値がこの条件を満たしている必要があります。)
1.0.5から