Changing the size of an icon

Hi all!

I'm trying to change the size of the default 32x32 icons to 64x64 in a line of js code:

Code:
var icon = $dataSkills[onActivate.skills[i]].iconIndex;
                this.drawIcon(icon, x, y);

I don't want all the icons in my game to be 64x64 by the way. Only these icons from $dataSkills in this part of the code.

Would super appreciate any help! <3
Hello, you have to redraw the drawicon function and change the 2 last parameters of the blt method (destination width and destination height)
Code:
    var icon = $dataSkills[onActivate.skills[i]].iconIndex;
    var bitmap = ImageManager.loadSystem('IconSet');
    var pw = Window_Base._iconWidth;
    var ph = Window_Base._iconHeight;
    var sx = icon% 16 * pw;
    var sy = Math.floor(icon / 16) * ph;
    this.contents.blt(bitmap, sx, sy, pw, ph, x, y, 64, 64);
I would probably write a new function, drawSkillIcon, which is identical to drawIcon but change the line

Code:
this.contents.blt(bitmap, sx, sy, pw, ph, x, y);

to

Code:
this.contents.blt(bitmap, sx, sy, pw, ph, x, y, pw*2, ph*2);

Then change the line to call drawSkillIcon instead. Then it'll draw the icon twice as large as usual for skills.
Do you want your icons to really be 64x64 pixels, or keep the default ones at 32x32 and simply zoom in at x2 (drawing them at 64x64 on the canvas)?
I'd assume the latter since the former would require edits to the actual icon sheet as well, and having two different sizes of icon on the same sheet would be rather unwieldy.
Thanks everyone. This works at resizing them! Only issue is that they the resized icons are a bit blurry in-game for some reason. They look fine in Photoshop at 64x64 or 200% zoom.

Do you guys know if there's anything I can do to make them not blurry or is there no way around it? (I have pixel art icons btw)
That's probably to do with the bitmap transfer method MV uses, which is different from how Photoshop's zoom works. I don't think you can easily get around that unless you create the icons at 64x64 in the first place.
Hmm... yeah. Looks like I'll need to create them at 64x64 then. I've just made a second icon sheet and I've changed the ImageManager load to the name of that file. Looks like it's not as simple as just doing that though as the icons are cropped.
Yeah, you'll have to set pw and ph to 64 as well to have them crop properly.
Awesome! Looks like I've got it working now! Thanks so much!
Glad to be of assistance!
Do you want your icons to really be 64x64 pixels, or keep the default ones at 32x32 and simply zoom in at x2 (drawing them at 64x64 on the canvas)?
how to zoom?
Necro-post notice: @J0h3l

Please start your own thread.

Original thread: https://forums.rpgmakerweb.com/threads/changing-the-size-of-an-icon.123360/