Delphi: size an image

Në Vazhdim Postuar Jan 11, 2009 Paguhet në dorëzim
Në Vazhdim Paguhet në dorëzim

this should be a simple task in Delphi, but I don't know how to solve it:

I read a JPG from a DLL

var

RStream: TResourceStream;

h :HINST;

begin

h := LoadLibrary(pchar(AddMainPath('[login to view URL]')));

RStream := [login to view URL](h, CurShp, RT_RCDATA);

// now I attach the JPG to a TImage control (because I want to display it on screen)

if assigned(RStream) then

begin

try

[login to view URL](RStream);

[login to view URL]:= Jpeg;

finally

[login to view URL];

end;

end

// now I want to size the TImage so that it will display

// the original JPG full size, something like

[login to view URL]:=375;

[login to view URL]:=134;

// BUT HOW DO I KNOW THE SIZE IN PIXEL OF THE LOADED JPG ?

end;

Please note that the code should work for JPG of any size.

The suggested code must compile in Delphi 5

Inxhinieri MySQL PHP Menaxhim projekti Arkitekturë softuerësh Testim Softuerësh

ID Projekti: #3534981

Rreth projektit

1 propozim Projekti në distancë Aktiv Jan 12, 2009

1 profesionist freelancer dërgoi një ofertë mesatare prej $13 për këtë punë

blewah

See private message.

$12.75 USD për 1 ditë
(4 Përshtypje)
2.7