Вверх ↑
Ответов: 305
Рейтинг: 4
#1: 2012-09-06 02:48:13 ЛС | профиль | цитата
А как открисовать картинку ровно по середине другой?
------------ Дoбавленo в 02.47:
Я понял что никак. Решил подсчетом ширин картинок:

Add(Math,4649121,462,392)
{
OpType=3
Op2=2
link(onResult,6570714:doOperation,[])
link(Op1,15901604:Width,[(468,380)(503,380)(503,489)(552,489)])
}
Add(Math,6570714,511,392)
{
OpType=3
Op2=2
link(onResult,13501772:doOperation,[])
link(Op1,15901604:Height,[(517,380)(528,380)(528,488)(559,488)])
}
Add(Math,13501772,567,392)
{
OpType=3
Op2=2
link(onResult,16377386:doOperation,[])
link(Op1,4746744:Width,[(573,380)(591,380)(591,485)(608,485)])
}
Add(Math,16377386,616,392)
{
OpType=3
Op2=2
link(onResult,2179509:doOperation,[])
link(Op1,4746744:Height,[(622,380)(618,380)(618,485)(615,485)])
}
Add(Math,2179509,672,392)
{
OpType=1
link(onResult,7909231:doOperation,[])
link(Op1,4649121:Result,[(678,380)(573,380)(573,436)(468,436)])
link(Op2,13501772:Result,[(685,380)(629,380)(629,436)(573,436)])
}
Add(Math,7909231,721,392)
{
OpType=1
link(Op1,6570714:Result,[(727,380)(622,380)(622,436)(517,436)])
link(Op2,16377386:Result,[(734,380)(678,380)(678,436)(622,436)])
}
Add(MainForm,5348726,371,420)
{
Width=1184
Height=856
Caption="Пример использования Img_Bmp"
link(onCreate,14465315:doEvent1,[])
}
Add(Bitmap,4746744,595,441)
{
FillColor=16777215
Point(Width)
Point(Height)
}
Add(Bitmap,15901604,539,441)
{
Point(Width)
Point(Height)
}
Add(Img_Bmp,8223377,532,553)
{
Transparent=0
TransparentColor=16777215
link(onDraw,3724259:doDraw,[])
link(Bitmap,14574694:Var2,[])
link(SourceBitmap,15901604:Bitmap,[])
}
Add(PaintBox,2823485,462,441)
{
Left=10
Top=5
Width=1095
Height=815
Point(onPaint)
link(onBeforeDraw,8223377:doDraw,[(513,447)(513,559)])
}
Add(Img_Bmp,3724259,588,553)
{
Transparent=0
TransparentColor=16777215
Point(X)
Point(Y)
link(Bitmap,14574694:Var3,[(594,523)])
link(SourceBitmap,4746744:Bitmap,[])
link(X,2179509:Result,[(608,489)(678,489)])
link(Y,7909231:Result,[(615,489)(727,489)])
}
Add(GetDataEx,14574694,532,518)
{
link(Data,2823485:Bitmap,[(538,496)(468,496)])
}
Add(Hub,14465315,420,434)
{
link(onEvent1,4649121:doOperation,[(448,440)(448,398)])
link(onEvent2,2823485:doRefresh,[])
}

карма: 0

0