[pre]
Private Sub back_load_Click()
CommonDialog1.Filter = "Bitmap Files (*.bmp)|*.bmp|" ' Show only *.bmp-files.
CommonDialog1.Action = 1 ' Show the Open Window.
RH = 0
RW = 0
GH = 0
GW = 0
dummy = LoadPicture(CommonDialog1.FileName)
SH = dummy.ScaleHeight * 2 ' take orignal Picture height and bump it 2x
SW = dummy.ScaleWidth * 2 ' take orignal Picture width and bump it 2x
Do Until RW >= SW
DoEvents
picMap.Refresh
BitBlt picMap.hDC, GW, GH, 1, 1, dummy.hDC, RW, RH, SRCCOPY
BitBlt picMap.hDC, GW + 1, GH, 1, 1, dummy.hDC, RW, RH, SRCCOPY
BitBlt picMap.hDC, GW, GH + 1, 1, 1, dummy.hDC, RW, RH, SRCCOPY
BitBlt picMap.hDC, GW + 1, GH + 1, 1, 1, dummy.hDC, RW, RH, SRCCOPY
RW = RW + 1
GW = GW + 2
Loop
RW = 0
GW = 0
RH = RH + 1
GH = GH + 2
frmMapEditor.Caption = "Ultimate Chaos Map Editor - " + CommonDialog1.FileTitle
End Sub
[/pre]
Okay, WTF is wrong. Everything is defined. dummy is a picture box, that is not visible. picMap is the Destination Picture box.This should use bitblt to blow up the picture they pic, to 2x, but obviously it is not working. It loads and all. Just it doesn't display the new picture. Any help would be greatly appreciated, as without fixing this i can't do much more. for the time beingLast modification: Same old Chuck - 06/13/01 at 09:04:55