[Ajuda] Include iImage
#2

Exemplo simples


pawn Код:
stock MostrarImg(img[], playerid) {
     new arr[bitmapType];
     new File: f = OpenImage(img, arr);

     for(new x; x != GetSizeX(arr); x++) {
          for(new y; y != GetSizeY(arr); y++) {

               new Text:t = TextDrawCreate(float(x),float(y),".");
               TextDrawColor( t, GetPixelColor(f, x, y, arr));
               TextDrawShowForPlayer(playerid, t);
          }
     }
     return CloseImage(f);
}
Nгo testei, mas й basicamente isto.
Reply


Messages In This Thread
Include iImage - by [THs]ShadoW - 01.11.2013, 23:13
Respuesta: Include iImage - by ipsBruno - 01.11.2013, 23:21
Re: Include iImage - by [THs]ShadoW - 01.11.2013, 23:31
Respuesta: Include iImage - by ipsBruno - 02.11.2013, 00:13
Re: Include iImage - by andreasbleck - 02.11.2013, 04:41
Respuesta: Include iImage - by ipsBruno - 02.11.2013, 04:48

Forum Jump:


Users browsing this thread: 1 Guest(s)