Resizing Images in Overlay

Started by davtov on

Topic category: Help with MCreator software

Last seen on 13:39, 3. Jan 2023
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Resizing Images in Overlay

I want to add an overlay, and the image I'm using is tiny (16x16), however, when I add the image to my overlay, it becomes massive, covering half the screen.

I cannot resize it by dragging with right-click. How do I resize an Image in Overlay?

Last seen on 04:35, 17. Jan 2021
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I believe there is a blit…
Thu, 06/04/2020 - 01:38

I believe there is a blit method to scale.

blit(
int xPos,		// x position relative to the screen image below it (not the entire screen).
int yPos,		// y position relative to the screen image below it (not the entire screen).
int blitOffset,		// z position (blitOffSet)
float textureX,		// x position on the texture image to draw from
float textureY,		// y position on the texture image to draw from
int imgSizeX,		// x image size to display (like crop in PS)
int imgSizeY,		// y image size to display (like crop in PS)
int scaleY,		// y image size (will scale image to fit)
int scalex)		// x image size (will scale image to fit)

 

Last seen on 03:10, 19. Feb 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
hmm. That should work.
Thu, 06/04/2020 - 02:22

hmm. That should work.