Вверх ↑
Ответов: 233
Рейтинг: 12
#1: 2018-11-22 11:55:19 ЛС | профиль | цитата
Добрый день! Подскажите пожалуйста как из Base64 перевести в png? C jpg получается,а вот png никак


Add(ODialog,6607378,350,217)
{
Filter="All Image Files|*.bmp;*.gif;*.ico;*wmf;*.emf;*.tif;*.png;*.jpg;*.jpeg|BMP (*.bmp)|*.bmp|JPG (*.jpg, *.jpeg)|*.jpg;*.jpeg|GIF (*.gif)|*.gif|TIFF (*.tif)|*.tif|PNG (*.png)|*.png|ICO (*.ico)|*.ico|EMF (*.emf)|*.emf|WMF (*.wmf)|*.wmf|All files (*.*)|*.*"
FileName=""
link(onExecute,9459066:doEvent1,[])
}
Add(Button,606307,294,217)
{
Left=205
Top=230
TabOrder=-1
Caption="Load"
link(onClick,6607378:doExecute,[])
}
Add(Memo,3710708,609,196)
{
Left=10
Top=5
Width=455
Height=215
ScrollBars=2
}
Add(StreamConvertor,5744430,490,217)
{
Mode=6
Point(Data)
link(onResult,7947916:doCharset,[])
}
Add(Charset,7947916,546,217)
{
Type=5
link(onCharset,3710708:doText,[])
}
Add(FileStream,13114923,434,217)
{
link(onLoad,5744430:doConvert,[])
}
Add(Hub,9459066,399,217)
{
link(onEvent1,13114923:doOpen,[])
link(onEvent2,13114923:doClose,[])
}
Add(Button,3784488,294,322)
{
Left=10
Top=235
Caption="Convert"
link(onClick,6761351:doCharset,[])
}
Add(Charset,6761351,343,322)
{
Type=4
link(onCharset,5633665:doWork1,[])
link(Text,1959167:Var,[])
}
Add(Image,10545761,455,322)
{
Left=20
Top=280
Width=205
Height=150
Ctl3D=0
}
Add(MultiElement,5633665,399,322)
{
link(onEvent1,10545761:doLoad,[])
}
BEGIN_SDK
Add(EditMulti,16386249,21,21)
{
EventCount=1
WorkCount=1
Width=342
Height=242
link(doWork1,9871107:doEvent1,[(42,27)(42,111)])
}
Add(Jpeg,1912301,264,112)
{
Quality=100
Point(doLoadFromStream)
Point(doBitmap)
Point(Stream)
link(onBitmap,16386249:onEvent1,[(330,118)(330,27)])
link(Stream,16512631:Var3,[(270,93)])
}
Add(Convertor,4223279,110,105)
{
Mode=12
link(onResult,1521709:doCopy,[])
}
Add(StreamCopy,1521709,159,105)
{
Count=-1
link(Dest,16512631:Var2,[])
}
Add(MemoryStream,14564521,159,49)
{
Point(doPosition)
}
Add(Hub,1247909,222,119)
{
OutCount=3
link(onEvent1,14564521:doPosition,[(247,125)(247,100)(144,100)(144,69)])
link(onEvent2,1912301:doLoadFromStream,[])
link(onEvent3,1912301:doBitmap,[])
}
Add(GetDataEx,16512631,159,88)
{
link(Data,14564521:Stream,[])
}
Add(Hub,9871107,63,105)
{
link(onEvent1,4223279:doConvert,[])
link(onEvent2,1247909:doEvent1,[(96,118)(96,147)(204,147)(204,125)])
}
Add(Icon,5258874,315,210)
{
@Hint=#5:#main|
Icon=[ZIP360B000078DAE5957950535714C61F1DB54E75864E670AAE831DDC51C70614B1D6A58ED5A2A0B8D0090AB1E2421129083528201104B4B2A9D06AA9855A59152426808961098440404B2D75A14E3B55A76A14B2BF3C1218BFDE1768AB164763FFECC97CB979EFDD93DF3DE77C93509403798D194391F709D4841114E54451D45422728BF2A0FAEFB3D1F306654F8C2472219AF8927219C8B12B5CC7BCF9DE3EEE9CAA38AE7B531C97F302B937B17BD91C7B39F3A68E0A7AD0D982970D762F9B632FC773AA53D0839BCD10C9AD103733A8BEDA0369670F64B72D90DDB1407ACB828B1D3DA8543110D658C0EE6573ECAFC72948DDD98C09CBF518F7B116AEBBF5704B37C2BD90867BA919338F9A30896FC0D8001D86727460F7CEFB0F9CC92BF558F8991E33F618C0C930C2EB7B1AF30B68781C376166AC0113793A0C9FABEDE74C7B554E135C96E8B12CD28095C9462C3862C45CF2FD1C52CB6C723D9DD4F80E578B61B3594E13CB89B0D787ECD9D49D0A8C9AA3C5FBC13AF8090CE0659BC0CBA5B136C784A529467076919EAED2C0C15543E6D3888CED5E379FF6E78B7DF817C771B2061E1BB45811A9873FA9612B61ED3E4563FF69330E9F3123239F8120DD82FBD7EB88142FE34307A2E103358E249CAD2C67985337662CD360F1661D7CA30CD878C0881D47082B8B46EC311A8964DD2360A0BE5E0B49DB79481EFD866AF52D88EFDD84F04EC7603E1C31EAAD917316CE1ABFDECB6DEC3AFF459352D59D4A380C7904574E173C7D345846587EE17A04C618109260C4EE4423F6251911CDA7D175430E7F710AA629BE86AB340BCE1752E150C8277363EB717E92F376B9C0E77771A23744073E82F8C00A72962650D443388F7D0837CF2E78796BF02199FBDA60C20AD32384F82332DA8088701ADD371AC115A7E25DC529B8C9B2E152F9055E2B8A1D8CE3D45692F4775FEFDF501035C0D7B71B6BFCBA1010D88D6D615A84F3758811E82148D5E3709A1E59597AE464F773D657246186FC04A6907AC68B0E917AF60ECA692D4E84E5871C309742A116854199178116722655D13EA88AC95A1C47144FAE63D15A1883F6E2185C2DE2E327F2B9253F1A5B2F656391E25BCC921E87F3F92450A7A39ECB61E47B41172F86A5C2073A210F9AAA30E8A4D1D08842F0A82C00EA8255B89FEB0146730F273383E02F4AC776C9718435E423ACA30A713F4B9172AD1669D7EA10FFA364C06FCF7292C0D4ED8159C40523E6C22AE1E1B13C1C8F1BA3D157138ADEAA0098CB56C09437DDD6DBCC2C1E38974E60B93C1F1B9A8B11DC5A86F02B15E0B757627F7B35A2DA44CFE5986B224097AF438F2C14D6FA68586BC3D12B0D86A52A108CD00FA692A530E44EB67132323661BA38138BA55FC1A72E0F018A026C6B2E45B8AA1CFCB60B8850096DBE1E8C434B3F85A9F42330559FC0D2C087B5F5904D16C264C40184F301F439A36D9CC3695C8C3B970C77D2BB2517BF844FCD37E0CA4F638BA208BB9467B1B3B9ECB91C53F516180A178116FA839186C2D2B81796E62458DBD288478EC2D29E0D4675C8C63999B519EBEAF2C16B2C4068CB39445FAE20FDAA44F25509D23B643876BD9EF44DC972363EC5293908D3052E74DF71603CEB0D5ABC098C6C27F1C6E7E851C4835192F9B5A4C0AC48B071A4A49E2B2589B85C221850C23F2AEE5F9BF2A2B49ED3462F7D9663285B03EDC989309C590053F96AD09541A4972130D746C22CE7C3DC180773438C8D13CBF5A82679AFDBF95760E3E88A7CD19DE9086DEE14E8CFCC87F19C374CC20D84C7032DD9015AB6CB2636E2025E89E378B93419D6BB4A587E11C2FA6B35ACB765E8BD5B8FDE3F1AD1774F89BE072DE853B712A908C58AF88D73AB48DE503B3943C4296BDBC407574394E4FB8C7CFEA54AB22F3ED06BFFC0EFFCFF2EFA28C7FAC1C53EEB57BD5D4AA87F52649036FD091892C312]
}
END_SDK
Add(LineBreak,5334549,609,245)
{
Type=1
link(Data,3710708:Text,[])
Primary=[1959167,-266,49]
}
карма: 2

0