gdk-pixbufサポート付きの検証

gdk-pixbufサポート付きの検証 — gdk-pixbufサポート付きであなたのプログラムが期待通りに動作しているかを検証します。

Functions

説明

Functions

gdkcut_pixbuf_assert_equal ()

void
gdkcut_pixbuf_assert_equal (const GdkPixbuf *expected,
                            const GdkPixbuf *actual,
                            guint threshold,
                            ...);

Passes if expected == actual . If difference of each corresponding pixel value is within threshold, expected and actual are treated as equal image.

If threshold is 3, pixel value of expected at (1, 1) is 127 and pixel value of actual at (1, 1) is 131, actual doesn't equals to expected . If pixel value of actual at (1, 1) is 130, actual may equal to expected . (All other corresponding pixel values are needed to fill this condition.)

Parameters

expected

期待するGdkPixbuf

 

actual

実際のGdkPixbuf

 

threshold

ピクセルの違いを検出するために使われるしきい値。

 

...

追加メッセージ(省略可能)。詳細はcut_message()を見てください。

 

Since: 1.0.5

Types and Values