# 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
- getL2DImage
- getUVPos
- getUVRotRad
- getUVScale
- isFocusable
- matsurface
- mouseClicked
- new
- onGainedFocus
- positionUpdate
- setL2DImage
- setUVPos
- setUVRotRad
- setUVScale
- texmatrix
- toString

new (class, int x,y,w,h, matsurface, [autofocus],[blendmode],[matrix4x4 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
getL2DImage (ImageComponent)
  returns: (l2dimage)
  returns the used imagecomponent
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.
setL2DImage (ImageComponent,l2d)
  returns: ()
  sets the used l2dimage
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,matrix4x4)
  returns: (matrix4x4)
  texturematrix for imagecomponent, pass a non matrix4x4 to disable
toString (ImageComponent)
  returns: (string)
  returns simple component representation

## Inherited Methods:

### From Component

acceptSkinBounds, addKeyListener, addMouseListener, addTooltipListener, clipinsets, colors, contains, createVisibles, delete, deleteVisibles, fadeTo, focus, focuscolors, getBottom, getBounds, getClipRect, getFocusComponentAt, getFocusElement, getFocusIndex, getHeight, getLocation, getMinSize, getMouseLock, getParent, getRight, getSize, getSkin, getTooltip, 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, removeTooltipListener, setBounds, setClip, setColor, setDefaultUI, setDisabled, setDisplayable, setFont, setLocation, setSize, setSkin, setTooltip, setVisibility, showTooltipInformation, showVisibles, skinnames.defaultskin, skinnames.focusedskin, skinnames.hoveredskin, skinnames.pressedskin, think, toString, transferFocus, transferFocusOnArrows, transferFocusOnTab, unlockMouse, updateSkin, validate, validateFocus, white, world2local, zorderoffset