Im currently working on a Halo 2, Halo 3 app and I want to display the map preview image some where. The problem is I am having trouble reading the image. I have looked at preys menu menu menu source but he reads things a lot diffrent then i do makeing it very hard to emulate them procedure. I can translate between C3 and VB but im working with VB, I want to realy know everything i possible can about VB befor i go tp C#, then C++. But any way I need some help
Here is what I have so far,
Code: Select all
Public Sub LoadMapImage()
'We need our Binary Reader
Dim BR As New BinaryReader(New FileStream(MapLocation, FileMode.Open, FileAccess.Read, FileShare.Read))
'Go to the image place and load our pics
Dim plus As Integer = IIf(MapFilter = 0, 15812, 15820)
MapSlotSize = IIf(MapFilter = 0, 2896, 3172)
BR.BaseStream.Position = H2Tag(1).MetaOffset + plus
Slots = BR.ReadInt32()
SlotOffset = BR.ReadInt32() - MapSecondaryMagic
End Sub
After that I am kinda stuck because of how prey loads map info its very diffrent then how my app does and i tryed to change some variables but i ended up with a huge problem with my magics. So any way I need a little help of loading these images.