結果グラフィック(CreateResultGraphics)の色を変える

ビジョンツールの結果グラフィック(CreateResultGraphics)の色を変える記述例です。バーコードツールの結果グラフィックを赤色に変更しています。

Dim bounds As CogCompositeShape
bounds = OneResult.CreateResultGraphics(CogBarcodeResultGraphicConstants.All)

Dim j As Integer
For j = 0 To bounds.Shapes.Count – 1
Dim oneGraphic As Cognex.VisionPro.ICogGraphic
oneGraphic = bounds.Shapes.Item(j)
oneGraphic.Color = CogColorConstants.Red
Next

製品:VisionPro

動作確認バージョン:5.0

言語:VB.NET、VS2005