How to Use JPEGs from resource files ?



How to Use JPEGs from resource files ?..

Answer / Mahesh Kumar Patairiya

To use JPEGs from resource files in Delphi, first add the image file to the resources. Then, you can load it using TResourceStream component and assign it to a TImage or TBitmap.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Delphi Interview Questions

Explain about Multi-Threaded ISAPI DLLs ?

1 Answers  


How to Typecaste a PChar to a longint?

1 Answers  


I'm using Delphi 4/5 and have am trying to fill a RichEdit control with both European characters and Thai characters - while I can change character colours the font stays with what was selected for the control:- reLangB.SelAttributes.Color :=dCol; reLangB.SelAttributes.Name :=FontName[dLang]; reLangB.SelAttributes.Charset :=FontChar[dLang]; reLangB.SelAttributes.Style :=[]; reLangB.Lines.Add(dText); The FontName and FontChar arrays contain the font info, and using a similar method for Captions and EditBoexes works! Anybody any ideas? Thanx in advance!

1 Answers  


How to Write a raw string of data to the printer?

1 Answers  


How to Limit the amount of text entered in a TEdit?

1 Answers  


How to Calculate an angle from two points?

1 Answers  


How to Execute a program from my application?

1 Answers  


How to prevent closing of an undocked ToolBar?

1 Answers  


How to keep seconds from being included in the display when using TDateTimePicker?

1 Answers  


How to determie if a given machine has a math coprocessor?

1 Answers  


How to Move the application server to another machine?

1 Answers  


How to set the default form font in Delphi?

1 Answers   Reliance,


Categories