Resizing Images in Overlay

Started by davtov on Thu, 06/04/2020 - 00:45

Topic category: Help with MCreator software

Last seen on 18:54, 27. Jun 2020
Joined Dec 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Resizing Images in Overlay
Thu, 06/04/2020 - 00:45

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:
  • Tracker tickets:
  • 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 23:22, 10. Jul 2021
Joined Jun 2019
Points:

User statistics:

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

hmm. That should work.