# Uses of Interface org.newdawn.slick.opengl.ImageData (Slick - The 2D Library)
Date: 2013-06-03

## Uses of Interface
org.newdawn.slick.opengl.ImageData

Packages that use ImageData
org.newdawn.slick
org.newdawn.slick.gui: Some extremely simple GUI elements which should be used where a game does not require a full GUI
org.newdawn.slick.opengl: This package contains the nitty gritty image manipulation code for using OpenGL with standard image formats.

Uses of ImageData in org.newdawn.slick

Classes in org.newdawn.slick that implement ImageData
`class` `ImageBuffer` A utility for creating images from pixel operations Expected usage is: `ImageBuffer buffer = new ImageBuffer(320,200); buffer.setRGBA(100,100,50,50,20,255); ..`

Methods in org.newdawn.slick with parameters of type ImageData
`abstract void` `GameContainer.setMouseCursor(ImageData data, int hotSpotX, int hotSpotY)` Set the mouse cursor to be displayed - this is a hardware cursor and hence shouldn't have any impact on FPS.
`void` `AppletGameContainer.Container.setMouseCursor(ImageData data, int hotSpotX, int hotSpotY)`
`void` `AppGameContainer.setMouseCursor(ImageData data, int hotSpotX, int hotSpotY)`

Constructors in org.newdawn.slick with parameters of type ImageData
`Image(ImageData data)` Create an image from a image data source
`Image(ImageData data, int f)` Create an image from a image data source.

Uses of ImageData in org.newdawn.slick.gui

Methods in org.newdawn.slick.gui with parameters of type ImageData
`void` `GUIContext.setMouseCursor(ImageData data, int hotSpotX, int hotSpotY)` Set the mouse cursor to be displayed - this is a hardware cursor and hence shouldn't have any impact on FPS.

Uses of ImageData in org.newdawn.slick.opengl

Subinterfaces of ImageData in org.newdawn.slick.opengl
`interface` `LoadableImageData` An image data source that can load images from a stream

Classes in org.newdawn.slick.opengl that implement ImageData
`class` `CompositeImageData` A composite data source that checks multiple loaders in order of preference
`class` `EmptyImageData` An image data implementation which represents an empty texture
`class` `ImageIOImageData` An image data provider that uses ImageIO to retrieve image data in a format suitable for creating OpenGL textures.
`class` `PNGImageData` The PNG imge data source that is pure java reading PNGs
`class` `TGAImageData` A utility to load TGAs.

Methods in org.newdawn.slick.opengl with parameters of type ImageData
`org.lwjgl.input.Cursor` `CursorLoader.getCursor(ImageData imageData, int x, int y)` Get a cursor based on a set of image data
`Texture` `InternalTextureLoader.getTexture(ImageData dataSource, int filter)` Get a texture from a image file

Copyright © 2006 New Dawn Software. All Rights Reserved.