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
a program that takes in three arguments: the first one represents the size of an array that will be
created the second one represents the maximum value that each of the array elements can have the third
one represents the position in the array that you would like to print the value of.