View Single Post
  #1 (permalink)  
Old 10-24-2007, 04:07 PM
agraham's Avatar
agraham agraham is offline
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,700
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default Image size problem

I'm not too good a drawing/image stuff and I can't see the problem here so I don't know if it is some sort of bug or not.

In the attached zip file are two nominally identical bmp files made in Paint Shop Pro XI and a screen shot showing that when I display them with this code
Code:
Sub Globals
	'Declare the global variables here.
	BmpFile1 = AppPath & "\Garden.bmp"
	BmpFile2 = AppPath & "\Garden2.bmp"
End Sub

Sub App_Start
	Form1.Show
	Form1.DrawImage(bmpfile1,0,0)	
	Form1.DrawImage(bmpfile2,100,100)
End Sub
Garden2.bmp is drawn 2.5 times as small as it should be. Changing the order of drawing and their locations makes no difference. Other apps like ACDSee, Paint, Windows Gallery etc. display them the same size as each other.

Does anyone know what's happening here?
Attached Files
File Type: zip Garden.zip (66.2 KB, 10 views)
Reply With Quote