Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you load a Bitmap into a Canvas?

Status
Not open for further replies.

Mkhozi

Programmer
Mar 9, 2001
2
AG
I would like to load a bitmap into a canvas(rectangle) at run time. As if you would fill the rectangle, however with a bitmap. How could I proceed?

Thak you in advance.
 
Mkhozi,

Basically, you either call the canvas's copyRect or stretchDraw methods, depending on whether or not you need to resize the image for different DPI/PPI/etc.

For more information, review the Help topics for these methods of the TCanvas class.

Hope this helps...

-- f
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top