Unregistered
February 4, 2002, 15:16:24
I get the following error when I use a slider control to set ICImagingControl1.Hue to a negative value:
An unexpected DShowLib Exception occured:
CVideoProcAmpPropertyItem::setManual(long) : failed
COM Error Message: The request could not be performed because of and I/O Device Error
In file:
D:\Daten\Prog\DShowLib\VideoProcAmpPropertyItem:CD D at
The code that I am using follows (Slider1, slider2, etc. are slider controls on the form containing IDImagingControl1. The sliders controling the other four properties work fine.):
Private Sub Form_Load()
Dim Range As Variant
With ICImagingControl1
Range = .BrightnessRange
Slider1.Min = Range(0)
Slider1.Max = Range(1)
Slider1.Value = .Brightness
Range = .HueRange
Slider2.Min = Range(0)
Slider2.Max = Range(1)
Slider2.Value = .Hue
Range = .ContrastRange
Slider3.Min = Range(0)
Slider3.Max = Range(1)
Slider3.Value = .Contrast
Range = .SaturationRange
Slider4.Min = Range(0)
Slider4.Max = Range(1)
Slider4.Value = .Saturation
End With
End Sub
Private Sub Slider1_Change()
ICImagingControl1.Brightness = Slider1.Value
End Sub
Private Sub Slider2_Change()
ICImagingControl1.Hue = Slider2.Value
End Sub
Private Sub Slider3_Change()
ICImagingControl1.Contrast = Slider3.Value
End Sub
Private Sub Slider4_Change()
ICImagingControl1.Saturation = Slider4.Value
End Sub
This message was originally posted by Keith Willson in the old IC Imaging Control Support Forum.
An unexpected DShowLib Exception occured:
CVideoProcAmpPropertyItem::setManual(long) : failed
COM Error Message: The request could not be performed because of and I/O Device Error
In file:
D:\Daten\Prog\DShowLib\VideoProcAmpPropertyItem:CD D at
The code that I am using follows (Slider1, slider2, etc. are slider controls on the form containing IDImagingControl1. The sliders controling the other four properties work fine.):
Private Sub Form_Load()
Dim Range As Variant
With ICImagingControl1
Range = .BrightnessRange
Slider1.Min = Range(0)
Slider1.Max = Range(1)
Slider1.Value = .Brightness
Range = .HueRange
Slider2.Min = Range(0)
Slider2.Max = Range(1)
Slider2.Value = .Hue
Range = .ContrastRange
Slider3.Min = Range(0)
Slider3.Max = Range(1)
Slider3.Value = .Contrast
Range = .SaturationRange
Slider4.Min = Range(0)
Slider4.Max = Range(1)
Slider4.Value = .Saturation
End With
End Sub
Private Sub Slider1_Change()
ICImagingControl1.Brightness = Slider1.Value
End Sub
Private Sub Slider2_Change()
ICImagingControl1.Hue = Slider2.Value
End Sub
Private Sub Slider3_Change()
ICImagingControl1.Contrast = Slider3.Value
End Sub
Private Sub Slider4_Change()
ICImagingControl1.Saturation = Slider4.Value
End Sub
This message was originally posted by Keith Willson in the old IC Imaging Control Support Forum.