forum.boolean.name

forum.boolean.name (http://forum.boolean.name/index.php)
-   Основной форум (http://forum.boolean.name/forumdisplay.php?f=49)
-   -   фотки (http://forum.boolean.name/showthread.php?t=12361)

www12 05.05.2010 22:52

Ответ: фотки
 
cherepets
дай

im_zorg 06.05.2010 07:25

Ответ: фотки
 
лови примерно так)))
PHP код:

uses canvas
    Var     
    
x,yxiyi,xsysxs1ys1statei,w,h,viborinteger
    
imimage
    
youimage: array [1..5of image;
Begin  
            w
:=getwidth;h:=getheight
            
xi:=w
            
yi:=h;
            
xs:=GetWidth
            
ys:=GetHeight
            
xs1:=GetStringWidth('вверх'); 
            
ys1:=GetStringHeight('вверх'); 
            
vibor:=1;
            for 
i:=1 to 5 do
            
begin
                        im
:=LoadImage('/'+i+'.png');
                        
youimage[i]:=canvas.resize_image(im,w,h); 
            
end;
            
repeat 
            state
:=GetKeyClicked
            if (
state=KE_KEY2)  or (state=-6then if vibor>1 then vibor:=vibor-1;
            if (
state=KE_KEY8)  or (state=-7then if vibor<5 then vibor:=vibor+1
            
DrawImage(youimage[vibor],0,0);
            
SetColor(00255);  
            
FillRect(xs-xs1,ys-ys1,xs1,ys1); FillRect(0,ys-ys1,xs1,ys1);  
            
SetColor(02550);  
            
DrawText('вверх',xs-xs1+5,ys-ys1); 
            
DrawText('вниз',0,ys-ys1); 
            
Repaint
            
Delay(20); 
            
setcolor(255,255,255);
            
FillRect(0,0,xs,ys); 
            
until false
End

картинки 1.png 2.png ... 5.png


Часовой пояс GMT +4, время: 12:30.

vBulletin® Version 3.6.5.
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Перевод: zCarot