## Tcl8.6.17/Tk8.6.17 Documentation > Tk C API > ImgChanged

### Tcl/Tk Applications | Tcl Commands | Tk Commands | [incr Tcl] Package Commands | SQLite3 Package Commands | TDBC Package Commands | tdbc::mysql Package Commands | tdbc::odbc Package Commands | tdbc::postgres Package Commands | tdbc::sqlite3 Package Commands | Thread Package Commands | Tcl C API | Tk C API | [incr Tcl] Package C API | TDBC Package C API

  NAME
    Tk_ImageChanged — 再描画されるべき映像を部品に通告する　 notify widgets that image needs to be redrawn
  SYNOPSIS
    #include <tk.h>
    Tk_ImageChanged(model, x, y, width, height, imageWidth, imageHeight)
  引数 ARGUMENTS
    Tk_ImageMaster model (入力in)
    int x (入力in)
    int y (入力in)
    int width (入力in)
    int height (入力in)
    int imageWidth (入力in)
    int imageHeight (入力in)
  説明 DESCRIPTION
  SEE ALSO
  KEYWORDS

### NAME

Tk_ImageChanged — 再描画されるべき映像を部品に通告する　 notify widgets that image needs to be redrawn

### SYNOPSIS

#include <tk.h>
Tk_ImageChanged(model, x, y, width, height, imageWidth, imageHeight)

### 引数 ARGUMENTS

Tk_ImageMaster model (入力in)
  映像の為の字句､それは映像が生成された時､映像のcreateProc に渡された｡ Token for image, which was passed to image's createProc when the image was created.

int x (入力in)
  再描画が必要な領域の左上隅のX-座標(映像の左上隅から測定された)｡　 X-coordinate of upper-left corner of region that needs redisplay (measured from upper-left corner of image).

int y (入力in)
  再描画が必要な領域の左上隅のY-座標(映像の左上隅から測定された)｡　 Y-coordinate of upper-left corner of region that needs redisplay (measured from upper-left corner of image).

int width (入力in)
  再描画される為に必要な領域の画素単位の巾｡ Width of region that needs to be redrawn, in pixels.

int height (入力in)
  再描画される為に必要な領域の画素単位の高さ｡　 Height of region that needs to be redrawn, in pixels.

int imageWidth (入力in)
  映像の画素単位の現在の高さ｡ Current width of image, in pixels.

int imageHeight (入力in)
  映像の現在の高さ､画素単位｡ Current height of image, in pixels.

### 説明 DESCRIPTION

影像管理譜は影像を再描画する要求が起った時は何時も影像の為に Tk_ImageChanged を呼ぶ｡ Tk_ImageChanged,の呼び出しの結果､影像を使うどの部品も通知され､それによって自身が適切に再描画可能になる｡ imageMaster 引数は影像を識別し､ x, y, width, and height は再描画される為に必要な影像内部の矩形領域を指定し､ imageWidth and imageHeight は影像の(新しい)寸法を指定する｡ An image manager calls Tk_ImageChanged for an image whenever anything happens that requires the image to be redrawn. As a result of calling Tk_ImageChanged, any widgets using the image are notified so that they can redisplay themselves appropriately. The model argument identifies the image, and x, y, width, and height specify a rectangular region within the image that needs to be redrawn. imageWidth and imageHeight specify the image's (new) size.

Tk_ImageModel は Tk_ImageMaster の類義語 Tk_ImageModel is synonym for Tk_ImageMaster

影像管理譜は､もしその影像の為の実現値が実在する場合は､影像の初めの寸法を指定する為にその createProc の間に Tk_ImageChanged を呼び､再表示を強要する｡もし影像内のどれかの画素値が後に変更される場合､ Tk_ImageChanged は変更される全ての画素に及ぶ x, y, width, and height 値を再度呼ぶべきである｡もし影像の寸法が変わる場合､再表示される為にどの画素も必要でなくとも新しい寸法を指し示す為に Tk_ImageChanged が呼ばれなくてはならない｡ An image manager should call Tk_ImageChanged during its createProc to specify the image's initial size and to force redisplay if there are existing instances for the image. If any of the pixel values in the image should change later on, Tk_ImageChanged should be called again with x, y, width, and height values that cover all the pixels that changed. If the size of the image should change, then Tk_ImageChanged must be called to indicate the new size, even if no pixels need to be redisplayed.

### SEE ALSO

Tk_CreateImageType

### KEYWORDS

images, redisplay, image size changes
Copyright © 1994 The Regents of the University of California.
Copyright © 1994-1996 Sun Microsystems, Inc.