标题:[求助]分割图片
只看楼主
ldd2w
Rank: 1
等 级:新手上路
帖 子:67
专家分:0
注 册:2006-1-4
 问题点数:0 回复次数:4 
[求助]分割图片
初来此地,希望大家多多帮忙,共同进步!
我要问的就是怎么分割图片
比如任意的分成3*3 4*4之类的
谢谢了!
搜索更多相关主题的帖子: 分割 图片 
2006-01-04 15:07
slore
Rank: 5Rank: 5
等 级:贵宾
威 望:16
帖 子:1108
专家分:0
注 册:2005-7-1
得分:0 

快上课了……
2006-01-04 17:20
ldd2w
Rank: 1
等 级:新手上路
帖 子:67
专家分:0
注 册:2006-1-4
得分:0 

谢谢你
但是怎么保存
我每次保存都是最后一副图片,而不是分割后的所有图片

2006-01-05 09:47
ldd2w
Rank: 1
等 级:新手上路
帖 子:67
专家分:0
注 册:2006-1-4
得分:0 
保存好了
2006-01-05 10:16
500dongguan
Rank: 1
等 级:新手上路
帖 子:10
专家分:0
注 册:2005-11-6
得分:0 
试试看,我写的
Private Sub Command7_Click() 'split用于JPG
Dim a As Byte
Dim b As Byte
i = 0
Open "d:\b2cv\XS_007.jpg" For Binary As #7
Open "d:\b2cv\1" For Binary As #8
Open "d:\b2cv\2" For Binary As #9
Do Until EOF(7)
If i < 38000 Then 'And i < 30145 'If I > 29544 Then 'And i < 30145
Get #7, , a
Put #8, , a
' Put #9, , b
Else
Get #7, , a
' Put #8, , b
Put #9, , a
End If
i = i + 1
Loop
Close #9
Close #8
Close #7
'Print " ok"
End Sub
Private Sub Command8_Click() 'unsplit
Dim a As Byte
Dim b As Byte
Open "d:\b2cv\007.jpg" For Binary As #7
Open "d:\b2cv\1" For Binary As #8
Open "d:\b2cv\2" For Binary As #9
Do Until EOF(8)
Get #8, , a
Put #7, , a
Loop
Do Until EOF(9)
Get #9, , a
Put #7, , a
Loop
Close #9
Close #8
Close #7
Print " ok"
End Sub
2006-01-07 21:38



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-41586-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.289887 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved