MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / resize

Method resize

src/app/script/api/sprite_script.cpp:130–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 void resize(int w, int h) {
131 app::DocumentApi api(doc(), transaction());
132 api.setSpriteSize(sprite(), w, h);
133 }
134
135 void crop(script::Value x, script::Value y, script::Value w, script::Value h){
136 gfx::Rect bounds;

Callers 15

resetMethod · 0.45
load_default_paletteFunction · 0.45
loadMethod · 0.45
PaletteScriptObjectMethod · 0.45
documentationMethod · 0.45
deselectMethod · 0.45
clearSelectionMethod · 0.45
onProcessMessageMethod · 0.45
onPaintMethod · 0.45
onAppPaletteChangeMethod · 0.45
dropColorsMethod · 0.45

Calls 1

setSpriteSizeMethod · 0.80

Tested by

no test coverage detected