Displaying a large bitmap file on a dialog box, in its original size, is quite difficult in the VC++ environment. However, it is possible to display a large bitmap to a predefined area of the dialog by using the StretchBlt( ) function.The major disadvantage of this is that the clarity of the image will be lost. Check out this article for displaying large bitmaps into the desired area of your dialog box in its original size with a scrolling technique used to show the entire bitmap. 滾動(dòng)顯示位圖 在VC++環(huán)境下,在一個(gè)對(duì)話框中顯示一個(gè)原始尺寸的大小的位圖文件相當(dāng)是困難的。然而,通過(guò)使用 StretchBlt()函數(shù)一個(gè)給定的區(qū)域顯示一個(gè)大的位圖是可能的。主要的缺點(diǎn)是圖像將會(huì)失真。看了這篇通過(guò)卷動(dòng)技術(shù)顯示整個(gè)位圖技術(shù)的文章,你將能夠以它的原始尺寸在給定對(duì)話框的區(qū)域內(nèi)顯示一個(gè)大位圖。 來(lái)源: http://www.codeguru.com/bitmap/ScrollBitmap.html
標(biāo)簽:
Displaying
difficult
original
bitmap
上傳時(shí)間:
2014-01-05
上傳用戶:yiwen213