Announcement

Collapse
No announcement yet.

Image Path Set

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Image Path Set

    Hi,

    I want to set Image path from the picturebox. ??

    vizConnection1.SendSingleCmd("RENDERER*TREE*$image*TEXTURE*IMAGE SET")

  • #2
    looking for the Open-file or either any simple image pick option.

    Comment


    • #3
      Done by this method.


      private void vizActionButton4_Click(object sender, EventArgs e)
      {
      {
      vizConnection1.SendSingleCmd("RENDERER*TREE*$textobject*GEOM*TEXT SET " + txtbox.Text, true);

      vizConnection1.SendSingleCmd("RENDERER*TREE*$flags*TEXTURE*IMAGE SET "+ txtimagepath.Text+flag.Text, true);

      }


      }
      }
      }



      Looking for the open file dialogue or picture box method.

      Comment


      • #4
        Hi, you might try to use picturebox. Give your picturebox an event: onClick.

        // open file dialog
        OpenFileDialog open = new OpenFileDialog();
        // image filters
        open.Filter = "Image Files(*.jpg; *.jpeg; *.gif; *.bmp)|*.jpg; *.jpeg; *.gif; *.bmp";
        if (open.ShowDialog() == DialogResult.OK) {
        // display image in picture box
        pictureBox1.Image = new Bitmap(open.FileName);
        // image file path
        textimg.Text = open.FileName;
        }

        on your another button to apply image to viz engine you can add command.
        vizConnection1.SendSingleCmd(RENDERER*TREE*$image*TEXTURE*IMAGE SET " +textimg.Text, true);

        Comment


        • #5

          Thanks Dedy Yudha Christian its done as what i am looking for. thanks Budy!! you are another the saviour


          Attached Files

          Comment


          • #6
            How can I turn layers on and off in order? is it possible?
            For example,
            First 1 data give all numbers and Flag
            then close layer and second layer Ulke_2 Flag open then close .. later 3 layer open like this? I have to chagne image layer in order...
            Attached Files

            Comment


            • #7
              OMO plugin probably, and control OMO.

              Comment


              • #8
                clueless
                OMO plugin probably, and control OMO. but how can we do? I'll connect from C# Viztoolkit to vizengine. Please help :/

                Comment


                • #9
                  Originally Posted by whoishako View Post
                  clueless
                  OMO plugin probably, and control OMO. but how can we do? I'll connect from C# Viztoolkit to vizengine. Please help :/
                  than you so much clueless really

                  Comment


                  • #10
                    Originally Posted by whoishako View Post

                    than you so much clueless really
                    I'm learning with you , just started working with Viz few months back, and its a handfull. Good thing there are guys over here and on Facbook willing to show some good examples.

                    Ill attach a litle updated via project and VS 2017 solution, maybe it helps someone else.

                    Attached Files

                    Comment


                    • #11
                      clueless thank you so much bro

                      Comment

                      Working...
                      X