static cell AMX_NATIVE_CALL n_FSetImageSize( AMX* amx, cell* params ){ posx = params[1]; posy = params[2]; GlobalImage.CreateStandardColorTable(); GlobalImage.SetSize(posx,posy); return 1; }
static cell AMX_NATIVE_CALL n_SetImageSize( AMX* amx, cell* params ){ amx_StrParam(amx,params[1],tmp); posx = params[2]; posy = params[3]; BMP Image; Image.ReadFromFile(tmp); Image.CreateStandardColorTable(); Image.SetSize(posx,posy); return Image.WriteToFile(tmp); }