Solved

how can i convert jpeg.stream->bmp.stream?

Posted on 2003-11-02
5
354 Views
Last Modified: 2010-04-05
hi,experts,
why delphi not support,  image1.picture.loadfromstream()
now i have a jpeg stream,and i want to show in image component,and i not hope i tempfile to
convert jpeg to bmp,how can i do?
thank.
0
Comment
Question by:jbas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 27

Accepted Solution

by:
kretzschmar earned 100 total points
ID: 9666175
var
  jpg : TJpegImage;
begin
  jpg := TJpegImage.Create;
  try
    jpg.loadFromStream(YourStreamHere);
    //display
    image1.picture.bitmap.assign(jpg);
  finally
    jpg.free;
  end;
end;

meikl ;-)
0
 

Expert Comment

by:IamNewbie
ID: 9676955
I want correct kretzschmar.

var
 jpg : TJpegImage;
 bmp: TBitmap;
begin
 jpg := TJpegImage.Create;
 bmp:=TBitmap.Create;
 try
   jpg.loadFromStream(YourStreamHere); // or LoadFromFile.... etc.
   //display
  jpg.DIBNeeded; // !!!!!!!!!!!!!!!!!!!!!!
  bmp.Assign(jpg);
 finally
   jpg.free;
 end;
end;
0
 
LVL 27

Expert Comment

by:kretzschmar
ID: 9677019
never needed this,
but well, its just for faster painting
0
 

Expert Comment

by:IamNewbie
ID: 9677026
:-)
0
 

Author Comment

by:jbas
ID: 9677442
thanks all!
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question