Home > Software engineering >  How to use VB call Marc post-processing of results
How to use VB call Marc post-processing of results

Time:09-20

Through analysis of the application of Marc software for image to reference images, and to remove the coordinates of each point

CodePudding user response:

 attribute sample Picture 
This example from the Visual Basic symbol library icon to load into two of the three PictureBox control, when clicking on the form, the third PictureBox to switch icon, you can use any two ICONS, please paste the code to include three small PictureBox control form of declaration section (for Picture3, set the Visible=False), press F5 to run the program, and then click form,

Private Sub Form_Load ()
'load icon,
Picture1. Picture=LoadPicture (" ICONS \ COMPUTER \ TRASH02A ICO ")
Picture2. Picture=LoadPicture (" ICONS \ COMPUTER \ TRASH02B ICO ")
End Sub

Private Sub Form_Click ()
'switching icon,
Picture3. Picture=Picture1. Picture
Picture1. Picture=Picture2. Picture
Picture2. Picture=Picture3. Picture
'remove the third image (if the image is not visible you don't need to remove),
Picture3. Picture=LoadPicture ()
End Sub

This example will paste a bitmap on the clipboard to the PictureBox control, in order to find (in the) of vbCF began to clipboard format constant values, please refer to the Visual Basic (VB) in the object browser object repository, try this example, please paste the code to contain statements that form a PictureBox control section, press F5 key, and then in another application to an icon is copied to the clipboard, switch to the Visual Basic, and click the form

Private Sub Form_Click ()
Picture1. Picture=Clipboard. GetData (vbCFDIB)
End Sub





Point method


According to the long integer, returns the specified on the Form or PictureBox pounds red - green - blue (RGB) color, does not support named parameters,

Syntax

Object. Point (x, y)

Point method syntax includes the following parts:

Part of the description
Object optional, an object expression, its value is "applied" in the list of an object, if you omit the object, with a focus on the Form as the default for the object.
X, y required, both for single precision value, indicating the Form or PictureBox ScaleMode property in the level of the point (x axis) and vertical (y - axis) coordinates, must include these values, brackets


Description

If the reference by the x and y coordinates of points in the object, Point method returns 1,
  •  Tags:  
  • VBA
  • Related