🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #21038

Re: Zapis jpg - jak poznać rozmiar przed zapisem

#21038
From: WebSpider
Date: Mon, 28 Sep 2009 07:48
16 lines
1556 bytes

Użytkownik "Łukasz'Maly' Ostrowski" <maly@USUNnemo.pl> napisał
> Zapisać tą bitmapę do MemoryStream a później sprawidzć
> Length tegoż.
>
> Bitmap bmp = ...;
> long size = 0;
> using(MemoryStream ms = new MemoryStream())
> {
>    bmp.Save(ms, format, parametryEnkodera);
>    size = ms.Length;
> }
> // tutaj masz size ustawiony i streama posprzątanego
>
Dzięki, o to właśnie mi chodziło :) 
Technical Details
Message-ID: <h9pqbk$lh8$1@nemesis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsfeed.neostrada.pl!nemesis.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
References: <h9om0c$6pi$1@atlantis.news.neostrada.pl> <1utlj72q3qrw9.9fkbi8b5zs68.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!newsfeed.neostrada.pl!nemesis.news.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
From: "WebSpider" <webs1821@spaaamowe.gmail.com>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Re: Zapis jpg - jak poznać rozmiar przed zapisem
Date: Mon, 28 Sep 2009 09:48:19 +0200
Organization: TP - http://www.tp.pl/
Lines: 17
Message-ID: <h9pqbk$lh8$1@nemesis.news.neostrada.pl>
References: <h9om0c$6pi$1@atlantis.news.neostrada.pl> <1utlj72q3qrw9.9fkbi8b5zs68.dlg@40tude.net>
NNTP-Posting-Host: 83.13.134.126
Mime-Version: 1.0
X-Trace: nemesis.news.neostrada.pl 1254124724 22056 83.13.134.126 (28 Sep 2009 07:58:44 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Mon, 28 Sep 2009 07:58:44 +0000 (UTC)
In-Reply-To: <1utlj72q3qrw9.9fkbi8b5zs68.dlg@40tude.net>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit