Class ImageNode

java.lang.Object
dev.prozilla.pine.core.component.Component
dev.prozilla.pine.core.component.ui.ImageNode
All Implemented Interfaces:
Lifecycle, Printable, ApplicationContext, ApplicationProvider, ComponentsContext, ComponentsProvider, EntityContext, EntityProvider, SceneContext, SceneProvider

public class ImageNode extends Component
A component for rendering an image in the UI.
  • Field Details

  • Constructor Details

    • ImageNode

      public ImageNode(String imagePath)
    • ImageNode

      public ImageNode(TextureBase image)
  • Method Details

    • getName

      public String getName()
      Overrides:
      getName in class Component
    • setImage

      public void setImage(Texture image)
    • setRegion

      public void setRegion(int regX, int regY, int regWidth, int regHeight)