VB - APP - 从Hex文件中提取某些块 [英] VB - APP - Extracting Certain Block From Hex File
问题描述
您好,
我是网站的新手,希望你们中的一些人可以帮助我,
我希望能够打开一个文件,找到该文件中的某个偏移量并提取到某个部分
我要提取的项目类型是偏移的PNG
171A
到
(这个数字取决于PNG的大小。 :S *)
所以简单地说
打开文件>读取数据>提取(171A - (见上)*>保存为PNG
哦,如果需要,图像将始终为64x64
非常感谢您的帮助!
Hello,
Im new to the site and was hoping some of you could help me,
I would like to be able to open a file locate a certain offset in that file and extract up to a certain part
the item type i would want to extract is PNG from offsets
171A
to
(This number is varied depending on what size the PNG is :S*)
so put simply
Open File > Read data > Extract (171A - (See Above*) > Save it as a PNG
Oh and if needed the image will always be 64x64
Thank you very much for any help!
推荐答案
FileStream对象应该可以满足您的需求。
如果是171A ;是你正在寻找的价值,你可以循环通过它直到找到171A,然后开始跟踪你所读的内容
如果171A是偏移地址那么你可能会使用Seek()函数寻找0x171A,然后开始阅读/跟踪你所读的内容
The FileStream object should accomplish what you need.
If "171A" is the value you are looking for, you can cycle through it until you find 171A and then start keeping track of what you read
if "171A" is the offset address then you can probably use the Seek() function to seek to 0x171A and then start reading/keeping track of what you read
嘿谢谢你的回复,但我可以对这些类型的函数进行排序?请,
谢谢
Hey thanks for replying but im sorta new to these kinds of funtions maybe and exmaple? please,
Thanks
大量的例子如MSDN
这篇关于VB - APP - 从Hex文件中提取某些块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!