Interface DrawImageRenderingBo
-
- All Superinterfaces:
AutoCloseable
,RenderingBo
,RenderingBoHasDimension
,RenderingBoHasPositionWorldPos
,RenderingBoScaledAbsolutePosition
public interface DrawImageRenderingBo extends RenderingBoHasDimension, RenderingBoHasPositionWorldPos, RenderingBoScaledAbsolutePosition
Draws an image. You can either set the resource name (and optional mod name) or the raw image data as byte[] in png format.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DrawImageRenderingBo
setImageData(byte[] data)
DrawImageRenderingBo
setResourceModName(String resourceModName)
DrawImageRenderingBo
setResourceName(String resourceName)
DrawImageRenderingBo
setTransparency(float transparency)
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface de.extio.spacecraft.shared.client.renderer.RenderingBo
getLayer, getLocalX, getLocalY, getX, getY, setColor, setEngineData, setLayer, withPositionAbsoluteAnchorBottomLeft, withPositionAbsoluteAnchorBottomLeft, withPositionAbsoluteAnchorBottomRight, withPositionAbsoluteAnchorBottomRight, withPositionAbsoluteAnchorTopLeft, withPositionAbsoluteAnchorTopLeft, withPositionAbsoluteAnchorTopRight, withPositionAbsoluteAnchorTopRight, withPositionIncrementalAbsolute, withPositionIncrementalAbsolute, withPositionIncrementalPercentual, withPositionPercentual, withPositionRelative, withPositionRelative
-
Methods inherited from interface de.extio.spacecraft.shared.client.renderer.RenderingBoHasDimension
getHeight, getWidth, withDimensionAbsolute, withDimensionAbsolute, withDimensionIncrementalAbsolute, withDimensionIncrementalAbsolute, withDimensionIncrementalPercentual, withDimensionPercentual
-
Methods inherited from interface de.extio.spacecraft.shared.client.renderer.RenderingBoScaledAbsolutePosition
getScaledX, getScaledY, withPositionAbsoluteAnchorTopLeftScaled
-
-
-
-
Method Detail
-
setResourceModName
DrawImageRenderingBo setResourceModName(String resourceModName)
-
setResourceName
DrawImageRenderingBo setResourceName(String resourceName)
-
setImageData
DrawImageRenderingBo setImageData(byte[] data)
-
setTransparency
DrawImageRenderingBo setTransparency(float transparency)
- Parameters:
transparency
- Values between 0.0 and 1.0
-
-