Вверх ↑
Ответов: 35
Рейтинг: 0
#1: 2022-02-07 13:47:06 ЛС | профиль | цитата
подскажите пожалуйста как мне сделать снимок формы которая имеет прозрачность
я пытался сделать по разному но в итоге чёрный квадрат

Make(delphi)
ver(4.05 build 186)
Add(MainForm,2953706,434,238)
{
Width=971
Height=352
Position=1
Point(SizeHeader)
Point(Handle)
}
Add(ScreenShort,558996,476,385)
{
Color=16776960
Point(Region)
link(onCapture,3179763:doLoad,[])
link(Handle,4051317:Var5,[(482,335)(370,335)])
}
Add(RGN_Rect,15603908,371,385)
{
Point2AsOffset=0
link(onCreateRect,11866959:doOffset,[])
link(Point1,11092645:Point,[(377,366)(342,366)])
link(Point2,7833549:Point,[])
}
Add(PointXY,11092645,336,315)
{
link(X,4051317:Var1,[])
link(Y,4051317:Var2,[])
}
Add(PointXY,7833549,378,315)
{
link(X,4051317:Var3,[(384,303)(356,303)])
link(Y,4051317:Var4,[(391,303)(363,303)])
}
Add(Button,7184611,280,385)
{
Left=395
Top=130
Width=180
Caption="—криншот формы >>>"
link(onClick,15603908:doCreateRect,[])
}
Add(Image,3179763,518,385)
{
Left=655
Top=35
Width=215
Height=245
Color=16777215
}
Add(RGN_Offset,11866959,427,385)
{
link(onOffset,558996:doCapture,[])
link(Y,4051317:Var6,[(447,335)(377,335)])
}
Add(ChildForm,4051317,336,238)
{
}
BEGIN_SDK
Add(EditMulti,9147222,21,21)
{
WorkCount=1
VarCount=7
link(doWork1,16560445:doVisible,[(84,27)(84,104)])
link(Var1,16560445:Left,[(27,171)(146,171)])
link(Var2,16560445:Top,[(34,171)(153,171)])
link(Var3,16560445:Width,[(41,171)(132,171)])
link(Var4,16560445:Height,[(48,171)(139,171)])
link(Var5,16560445:Handle,[(55,171)(160,171)])
link(Var6,16560445:SizeHeader,[(62,171)(167,171)])
link(Var7,16560445:SizeBorder,[(69,171)(174,171)])
}
Add(MainForm,16560445,126,70)
{
Left=35
Top=105
Color=16777215
Visible=1
BorderStyle=6
DragForm=0
Position=1
TransparentManager="634"
Point(doVisible)
Point(doShiftLeft)
Point(doShiftTop)
Point(Width)
Point(Height)
Point(Left)
Point(Top)
Point(Handle)
Point(SizeHeader)
Point(SizeBorder)
}
Add(TransparentManager,3026241,217,84)
{
Name="634"
Picture=[ZIP1AF5060078DAEDDC4B4F1B571880E12F9BFE814A49B81AE30B3609844B6E74D97D7F567F522EA4EAAA5DA48B2CDA45AA3641D026E21E0321254081E99CB101A704A9AB4A460FD2A38F8C6316B3F0AB9973C65F7FD3FFD717917EEEE71AB96FAF45D472D762A438FEF643FBF5EE9FEAC03B000000000080FFAC3EB416CDD1C598A8BD8CA9E68B98B9F51C802BE84EE3E76894DE5EE8C0E860E7F7C18D18AF2CC5ECED1FE28F852C36D7B2D8D9CAB53A73BB6D77ABAD387EFA1A003D65F96D1677C67EF96C13927ADE84DBB5DFE3E1F493585FC962EF6316C75916D9492ECDEC2477D4F9BD73FCEC35007A49EA42BA5ED004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D004013340140133401401334014013340140133401401334014013340140133401401334014013340140133401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D004013340140133401401334014013340140133401401334014013340140133401401334014013340140133401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D0040139C57004DD004004DD004004DD004004DD004004DD004004DD004004DD004004DD004004DD004004DD004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D706E0134411300344113003441130034411300344113003441130034411300344113003441130034411300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004DD004004DD004004DD004004DD004004DD004004DD004004DD004004DD004004DD004004DD004004DD004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004DD004004DD004004DD004004DD004004DD004004DD004004DD004004DD004004DD004004DD004004DD004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D705E0134411300344113003441130034411300344113003441130034411300344113003441130034411300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D004003401004D00401300D0040034C1B905D0044D00D0044D00D0044D00D0044D00D0044D00D0044D00D0044D00D0044D00D0044D00D0044D00401300D004003401004D00401300D004003401004D00401300D00400FEDF266C443535A1FA3A1ECC3C89D5BC09FB1F3FF7D97FE25C025CE126A4168C76346BAFE35E7713520B8EDBD235C371F7DFEC6EC50900BD64A7F5F926A47B46C5F5C2402BC6AB0B674D38EC6EC251BB077F7FD285134D00B8624D68F46D17EA7D3B3139BA140FA7E66373B9D384F4B97FDC7EFF6913DA5D700F09A097ED5E72EFA8D1DF6A3B6DC2F4D37613F6B3F69AF2C9BF9B7052F8E43ED259234CD334CD5E989735A13EBC12D5E1B5625D61BC96D6981FC5FA5A16FB87E9BD0767EF4F3D38ECBA5638BF8F74BA1FC9344DD3EC95B9B37DC9BEA3D2726EE57C8D79F651ACE64DD83B4C9FF9E74DE85E4FE876DE1D007AC5654D280F6D4479309F03DBD1AC2CC5BDE9A7B1BC92C58783F4997F7471FFE9E91AC55176B6D6E0DE1CC0D5584F280FB48A1E8CF6EFC478D184F97613F6DB6B0717FAD2B53FF5AC0900F494DD4BF61DD506B7626C78274A5FAEC4646521BE9A9D2FF6A2BEDFEB5E4F3EEADC473A38BF27D5F57CC2E93D24D3344DB337E6A5CF315F5F8F7A3E2746DEC7546D311E4C7E176F16B3D8DA6E5F2B140EDAEB0B69DD39ED474AFB5493FD8E3DD3344DB3A7E6E65A1653CD17179A3036D88AF1D24E94AFAF46737829A6EBCF63F1D72CDE2E65C5F5C2EA7256DC4B4AEBCE693F52DAA79A14AFE5D63BD231D3344DB337E69B852C266A2F2F34A132B01EA3FD6B51CBDBD02CADC474ED55CC8CFD147353DFC783A9C7717FE659DC9D9D8FFB771FC7C3D9C73137331F73D3CFE2FEECD3C2DC4CAE386E9AA669F6CABC3BF1633447172F7EDF516933AAC3EF6274A8152303AB3159DD8C5B237FC65465A1585F48EF69E49AD5578589F262A159791D8DFCDFB72AF9B1EA6F31619AA669F6CCBC957F8ED787D62E3461E8E65AB11775F0C66A5486B7A27C73BDB88F3459DE8DEACDCD623F52B12FA9F3DDA9E979E7F43D18E9FB914E8FD501E83917AE11D27A42692F866FBE2B7A502BB5A2DCB71A8DA1ADA8F66D147B92520F5233D2736DE979E7F6F7606C9F7DA76AF592BF0B40EF29DFD88DCAC0FB1819D88C52FF4A3446B6DAFDC8AF11AAC5B30BADE2B9B6F4BC733D77DA84E2FF0CAD3B870057C83F3414E435]
}
END_SDK
Add(Button,10200492,273,238)
{
Left=510
Top=245
Caption="показать форму"
link(onClick,4051317:doWork1,[])
}

карма: 0

0