The Center property determines whether the bitmap The Stretch property determines whether the image will be enlarged or compressed For example, here's how you change the image in the component at runtime: Picture at design time through the Object Inspector, or you can load a picture at Picture property of TImage is an instance of the TPicture class. Great for many graphics operations, including a bitmap background for a form. Pen property to change the color or thickness of the border surrounding the shape.Īn Image component can be used to display a bitmap on a form. YouĬan draw circles, ellipses, squares, rectangles, and rectangles with rounded edges.Ĭhange the Brush property to modify the background color of the shape. Justĭrop one on a form and change the Brush, Pen, and Shape properties as desired. The Shape component (found on the Additional tab of the Component palette) canīe used to add simple shapes to your forms. I'll take a brief look at some of these components before moving VCL provides ready-made componentsįor those times. Sometimes all you need toĭo is display a picture or a simple shape on a form. Graphics programming does not have to be difficult. Wave audio, MIDI, and AVI video files using the TMediaPlayer class. The multi-media programming sectionsĭeal with how to play sound files with the Windows API. Offscreen bitmaps and how they can benefit you. Routines and the different ways to display bitmaps. Along the way, you learn about the various line and shape drawing You learn about the Windows Graphics Device Interface and the components that make I start with a look at the easiest ways to display graphics in Delphi. Of an examination of the TCanvas and TBitmap classes. In the case of graphics programming, most of that introduction comes in the form This chapter, you are introduced to graphics and multimedia programming with Delphi. Graphics and multimedia programming represent the fun part of programming. MediaPlayer Properties, Methods, and Events.12 - Graphics and Multimedia Programming Teach Yourself Borland Delphi 4 in 21 Days Teach Yourself Borland Delphi 4 in 21 Days - Ch 12 - Graphics and Multimedia Programming
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |