# Class: ImageComponent

### LuxModule: gui

A ImageComponent element for displaying simple images (textures, material, plain colors).

## Hierarchy

    o-+ Component
      o-+ ImageComponent

## Methods:

### Method overview:

- blendmode
- color
- createVisibles
- deleteVisibles
- getUVPos
- getUVRotRad
- getUVScale
- isFocusable
- matsurface
- mouseClicked
- new
- onGainedFocus
- positionUpdate
- setUVPos
- setUVRotRad
- setUVScale
- texmatrix
- toString

new (class, int x,y,w,h, matsurface, [autofocus],[blendmode],[matrix16 texmatrix])
  returns: (ImageComponent)
  .
blendmode (ImageComponent,blendmode)
  returns: ()
  blendmode for imagecomponent
color (ImageComponent,float r,g,b,a)
  returns: ()
  color for imagecomponent
createVisibles (Component self,l2dnode basel2d)
  returns: ()

  description from overloaded method of Component:

  called when a Component is now displayable (doesn't have to be visible)
deleteVisibles (Component self)
  returns: ()

  description from overloaded method of Component:

  called when a Component is no longer displayed
getUVPos (ImageComponent,x,y)
  returns: ()
  gets uv translation
getUVRotRad (ImageComponent)
  returns: (phi)
  gets uv rotation angle
getUVScale (ImageComponent)
  returns: (x,y)
  gets scaling for uv
isFocusable (ImageComponent)
  returns: (boolean)
  returns true if visible
matsurface (ImageComponent,matsurface)
  returns: (matsurface)
  matsurface for imagecomponent
mouseClicked (Component self, MouseEvent e, boolean mouseover)
  returns: ()

  description from overloaded method of Component:

  called if the mouse was clicked on the component.
onGainedFocus (from)
  returns: ()
  simply forwards the focus to the next element.
positionUpdate (Component self,int zindex,Rectangle clip)
  returns: (int newz)

  description from overloaded method of Component:

  called when the component was moved or resized. Overload this method for visual appearance. The zindex is the id to use for zordering the components. Return the newz value, reserving all the values that you require for your visual nodes.
setUVPos (ImageComponent,x,y)
  returns: ()
  sets uv translation
setUVRotRad (ImageComponent,phi)
  returns: ()
  sets uv rotation angle
setUVScale (ImageComponent,x,y)
  returns: ()
  sets scaling for uv
texmatrix (ImageComponent,matrix16)
  returns: (matrix16)
  texturematrix for imagecomponent, pass a non matrix16 to disable
toString (ImageComponent)
  returns: (string)
  returns simple component representation

## Inherited Methods:

### From Component

acceptSkinBounds, addKeyListener, addMouseListener, clipinsets, colors, contains, createVisibles, delete, deleteVisibles, focus, focuscolors, getBounds, getClipRect, getFocusComponentAt, getFocusElement, getFocusIndex, getHeight, getLocation, getMinSize, getMouseLock, getParent, getSize, getSkin, getWidth, getX, getY, hasFocus, hideVisibles, index, invalidate, isClipped, isDisplayedFlag, isFocusable, isMouseLocker, isVisible, isVisibleFlag, keyEvent, keylisteners, local2world, lockMouse, mouseClicked, mouseEntered, mouseEvent, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheeled, mouselisteners, moveToRect, new, newFocusOrder, onDestroy, onDisplayChange, onGainedFocus, onLostFocus, onVisibilityChange, positionUpdate, remove, removeKeyListener, removeMouseListener, setBounds, setClip, setColor, setDisplayable, setFont, setLocation, setSize, setSkin, setVisibility, showVisibles, skinnames.defaultskin, skinnames.focusedskin, skinnames.hoveredskin, skinnames.pressedskin, think, toString, transferFocus, transferFocusOnArrows, transferFocusOnTab, unlockMouse, updateSkin, validate, white, world2local, zorderoffset