📄 frmphoto.frm
字号:
VERSION 5.00
Object = "{3A75EE84-8E64-43F4-A904-E4835B9A3DB4}#3.9#0"; "DICOMax.ocx"
Begin VB.Form frmPhoto
BorderStyle = 0 'None
Caption = "胶片"
ClientHeight = 11520
ClientLeft = 0
ClientTop = 0
ClientWidth = 15360
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 11520
ScaleWidth = 15360
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
WindowState = 2 'Maximized
Begin DICOMax.DICOMX dcmPhotoExamine
Height = 10935
Left = 0
TabIndex = 0
Top = 0
Width = 15375
Object.Visible = -1 'True
BorderStyle = 0
Enabled = -1 'True
ImageSlicesCurrent= 0
ImageZoomPct = 100
ImageSmoothOn = -1 'True
ImageWinCenter = 0
ImageWinWidth = 0
ImageOverlayOn = 0 'False
ImageOverlayColor= 1
ImageColorScheme= 1
ImageTool = 1
ToolBarVisible = 0 'False
ImageZoomBestFit= 0 'False
ImageUseRefContrast= -1 'True
ImageShowHeaderInfo= 0 'False
OpenFileName = ""
ToolBarPos = 1
DICOMInstitutionName= "Anonymous"
DICOMCityName = "Unknow"
DICOMStudyDescrp= "Functional"
DICOMManufacturer= "http://www.dicom3.cn/"
DICOMSeriesTag = ""
DICOMPatientName= "NO Name"
DICOMPatientID = "No ID"
DICOMModality = "OT"
DICOMSOPClassUID= ""
DICOMSOPInstanceUID= ""
ImagePOS = 5
ImageVScrollPosition= 17
ImageHScrollPosition= 10
DICOMPatientBirthDate= "Unknow"
DICOMPatientSex = "Unknow"
ImageOverlayLanguage= 1
ImageMagnifyZoomSize= 2
DICOMStudyDate = ""
DICOMSeriesDate = ""
DICOMImageDate = ""
DICOMStudyTime = ""
DICOMSeriesTime = ""
DICOMImageTime = ""
DICOMSeriesNumber= 0
DICOMImageNumber= 0
OpenUrlFileName = ""
DICOMRefPhyName = ""
DICOMStudyInstanceUID= ""
DICOMSeriesInstanceUID= ""
DICOMStudyID = ""
ImageMeasureMaxItem= 8
ImageMeasureResultIndex= 1
ImageXGRGBColor = 1
DICOMDirStudyPos= 1
DICOMDirSeriesPos= 1
DICOMDirImagePos= 1
DICOMImplementationClassUID= ""
DICOMImplementationVersionName= ""
DICOMSourceApplicationEntityTitle= ""
FrameOfReferenceUID= ""
ImageMeasureFontSize= 8
ImageMeasureTextPreSet= ""
ImageMeasureTextFontSize= 8
ImageMeasureSelectIndex= 0
OCXLanguage = 1
ImageMagnifySize= 60
ImageOverlayFontSize= 10
ImageOverlayFontName= "Arial"
ImageOverlayShowRuler= 0 'False
EnableMouseScroll= -1 'True
DICOMPixelSpaceWidth= 0
DICOMPixelSpaceHeight= 0
ShowRealTimeImage= -1 'True
ImageSortByFileName= 0 'False
ImageXGPaletteColor= 2
ImageMagnifyProcess= 0
DICOMSeriesDescrp= "Functional"
DICOMProtocolName= "ProtocolName"
DICOMMModelName = ""
ImagePreviewDataAddress= 0
LicenseCode = ""
End
Begin VB.PictureBox picFilmEdit
Align = 2 'Align Bottom
BackColor = &H00C0C0C0&
Height = 570
Left = 0
ScaleHeight = 510
ScaleWidth = 15300
TabIndex = 24
Top = 10950
Width = 15360
Begin VB.CommandButton btnPlay
Caption = "播放"
Height = 510
Left = 13350
TabIndex = 25
Top = 0
Width = 525
End
Begin VB.Timer tmrPlaySlice
Interval = 200
Left = 315
Top = -195
End
Begin VB.CommandButton btnBack
Caption = "返回"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 14160
TabIndex = 23
Top = 0
Width = 1095
End
Begin VB.CommandButton btnDefault
Caption = "指针"
Height = 510
Left = 120
TabIndex = 1
Top = 0
Width = 525
End
Begin VB.CommandButton btnAdjustWindow
Caption = "调窗"
Height = 510
Left = 720
TabIndex = 2
Top = 0
Width = 525
End
Begin VB.CommandButton btnLength
Caption = "长度"
Height = 510
Left = 9120
TabIndex = 16
Top = 0
Width = 525
End
Begin VB.CommandButton btnUpdown
Caption = "上下"
Height = 510
Left = 1320
TabIndex = 3
Top = 0
Width = 525
End
Begin VB.CommandButton btnLeftRight
Caption = "左右"
Height = 510
Left = 1920
TabIndex = 4
Top = 0
Width = 525
End
Begin VB.CommandButton btnNinety
Caption = "旋转"
Height = 510
Left = 2520
TabIndex = 5
Top = 0
Width = 525
End
Begin VB.CommandButton btnEnlarge
Caption = "放大镜"
Height = 510
Left = 3120
TabIndex = 6
Top = 0
Width = 525
End
Begin VB.CommandButton btnFilterClean
Caption = "滤镜"
Height = 510
Left = 3720
TabIndex = 7
Top = 0
Width = 525
End
Begin VB.CommandButton btnSharpen
Caption = "锐化"
Height = 510
Left = 4320
TabIndex = 8
Top = 0
Width = 525
End
Begin VB.CommandButton btnProcessFilter
Caption = "滤波处理"
Height = 510
Left = 4920
TabIndex = 9
Top = 0
Width = 525
End
Begin VB.CommandButton btnEmboss
Caption = "浮雕"
Height = 510
Left = 5520
TabIndex = 10
Top = 0
Width = 525
End
Begin VB.CommandButton btnSmooth
Caption = "平滑"
Height = 510
Left = 6120
TabIndex = 11
Top = 0
Width = 525
End
Begin VB.CommandButton btnRectangle
Caption = "矩形"
Height = 510
Left = 7320
TabIndex = 13
Top = 0
Width = 525
End
Begin VB.CommandButton btnEllipse
Caption = "椭圆"
Height = 510
Left = 7920
TabIndex = 14
Top = 0
Width = 525
End
Begin VB.CommandButton btnAngle
Caption = "角度"
Height = 510
Left = 8520
TabIndex = 15
Top = 0
Width = 525
End
Begin VB.CommandButton btnArrow
Caption = "箭头"
Height = 510
Left = 9720
TabIndex = 17
Top = 0
Width = 525
End
Begin VB.CommandButton btnAddScale
Caption = "增大"
Height = 510
Left = 10320
TabIndex = 18
Top = 0
Width = 525
End
Begin VB.CommandButton btnSubScale
Caption = "缩小"
Height = 510
Left = 10920
TabIndex = 19
Top = 0
Width = 525
End
Begin VB.CommandButton btnProcessBlur
Caption = "降燥"
Height = 510
Left = 6720
TabIndex = 12
Top = 0
Width = 525
End
Begin VB.CommandButton btnReverse
Caption = "反色"
Height = 510
Left = 11520
TabIndex = 20
Top = 0
Width = 525
End
Begin VB.CommandButton btnPatientInfo
Caption = "信息"
Height = 510
Left = 12120
TabIndex = 21
Top = 0
Width = 525
End
Begin VB.CommandButton btnRuler
Caption = "标尺"
Height = 510
Left = 12720
TabIndex = 22
Top = 0
Width = 525
End
End
End
Attribute VB_Name = "frmPhoto"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'------------------------------------------------------------------------------------
'文件:frmPhoto.frm
'作者:刘辉
'时间:2009-2-2
'说明:胶片显示窗体
'------------------------------------------------------------------------------------
Option Explicit
Dim DEFAULT_FILM_PATH As String
'图片总张数
Dim iCount As Integer
'图片列数
Dim m_nCols As Long
'图片行数
Dim m_nRows As Long
'图片大小每次增加或减少的幅度
Const DICOM_ADD_SCALE = 2
'是否已锐化
Dim bSharpen As Boolean
'按钮事件--增大
Private Sub btnAddScale_Click()
On Error GoTo ErrHandler
dcmPhotoExamine.ImageZoomPct = dcmPhotoExamine.ImageZoomPct + DICOM_ADD_SCALE
Exit Sub
ErrHandler:
MsgBox Err.Description, vbExclamation, "提示"
End Sub
'按钮事件--调窗
Private Sub btnAdjustWindow_Click()
On Error GoTo ErrHandler
dcmPhotoExamine.ImageTool = 1
Exit Sub
ErrHandler:
MsgBox Err.Description, vbExclamation, "提示"
End Sub
'按钮事件--角度
Private Sub btnAngle_Click()
On Error GoTo ErrHandler
dcmPhotoExamine.ImageTool = 9
Exit Sub
ErrHandler:
MsgBox Err.Description, vbExclamation, "提示"
End Sub
'按钮事件--箭头
Private Sub btnArrow_Click()
On Error GoTo ErrHandler
dcmPhotoExamine.ImageTool = 10
Exit Sub
ErrHandler:
MsgBox Err.Description, vbExclamation, "提示"
End Sub
'按钮事件--返回
Private Sub btnBack_Click()
On Error GoTo ErrHandler
'Unload Me
Me.Hide
Call ShowWindow(frmMain.hwnd, 3)
Exit Sub
ErrHandler:
MsgBox Err.Description, vbExclamation, "提示"
End Sub
'按钮事件--指针
Private Sub btnDefault_Click()
On Error GoTo ErrHandler
dcmPhotoExamine.ImageTool = 14
Exit Sub
ErrHandler:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -