save picture with label

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • naheed javaid
    New Member
    • Oct 2006
    • 4

    save picture with label

    i hve draw a label over the picture,i wanna know how to save the picture with label.

    another problem is that how text can be drawn over picture box using print method in multiple lines.
    reply me as soon as possible
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by naheed javaid
    i hve draw a label over the picture,i wanna know how to save the picture with label.

    another problem is that how text can be drawn over picture box using print method in multiple lines.
    reply me as soon as possible
    I would be curious to find out what the story is with this, too. The Print method is no longer available for either Form or picture box - is this normal, or is it just me? I'm sure I used to use it, and it is mentioned in the online help and at various places on the web, such as http://www.engineering.usu.edu/cee/f...BGradClass.htm.

    Comment

    • naheed javaid
      New Member
      • Oct 2006
      • 4

      #3
      thanks killer for helping me
      print method is used with picturebox to draw text over picture box
      e.g picture1.print "naheed"
      actually i m doing my final project
      my project is related to screen capturing
      main theme is to create demo.
      on the captured pictures i want to draw balloon like shape and then wanna add text whatever added in text box.
      i hve drawn balloon and also printed text but in one line
      i wanna print in multiple line.
      one idea i got that i should add text on balloon shape on label
      but i m not finding help how to save picture with label
      i hope u hve understand my problem
      wishing urs cooperation

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by naheed javaid
        thanks killer for helping me
        print method is used with picturebox to draw text over picture box
        e.g picture1.print "naheed"
        actually i m doing my final project
        my project is related to screen capturing
        main theme is to create demo.
        on the captured pictures i want to draw balloon like shape and then wanna add text whatever added in text box.
        i hve drawn balloon and also printed text but in one line
        i wanna print in multiple line.
        one idea i got that i should add text on balloon shape on label
        but i m not finding help how to save picture with label
        i hope u hve understand my problem
        wishing urs cooperation
        Do you mean that when you save the picture it is just the original picture without the balloon and text you drew on it? If that is the case, you probably just need to turn on the AutoRedraw property of the picturebox before you draw anything.

        Comment

        • naheed javaid
          New Member
          • Oct 2006
          • 4

          #5
          Balloon shape is drawn and text is also drawn.i also know that to do drawing over picture autoredraw property must be true.there is no problem with displaying label over picture.
          main problem is to save picture with label.
          when i save picture balloon shape is saved but the label drawn over it was not saved.
          regarding that i need urs help
          thanks

          Comment

          • Killer42
            Recognized Expert Expert
            • Oct 2006
            • 8429

            #6
            Originally posted by naheed javaid
            Balloon shape is drawn and text is also drawn.i also know that to do drawing over picture autoredraw property must be true.there is no problem with displaying label over picture.
            main problem is to save picture with label.
            when i save picture balloon shape is saved but the label drawn over it was not saved.
            regarding that i need urs help
            thanks
            Ah! So it's actually a label control displayed over the picturebox? Hm... Can you Print the text directly onto the picturebox control, inside the balloon? You just set CurrentX & CurrentY, then use the picturebox.Prin t method. I don't know how else you'd go about getting it saved together.

            If you are drawing two things on the picturebox (balloon then text) then saving the picture, I don't see how it could save one and not the other. Unless, perhaps, you are doing the text first and the balloon is covering it up. But presumably you would have noticed that.

            Comment

            • MiraKimura
              New Member
              • Sep 2007
              • 6

              #7
              Originally posted by Killer42
              Ah! So it's actually a label control displayed over the picturebox? Hm... Can you Print the text directly onto the picturebox control, inside the balloon? You just set CurrentX & CurrentY, then use the picturebox.Prin t method. I don't know how else you'd go about getting it saved together.

              If you are drawing two things on the picturebox (balloon then text) then saving the picture, I don't see how it could save one and not the other. Unless, perhaps, you are doing the text first and the balloon is covering it up. But presumably you would have noticed that.
              i am sorry, but i don't think picture box has .print method. or am i wrong? i have the same problem. how to solve it?

              i have drawn lines and also put picture box in that picture box. but i cant save any although i have turn on the autoredraw property of the picture box.

              can someone help?

              Comment

              • Killer42
                Recognized Expert Expert
                • Oct 2006
                • 8429

                #8
                Originally posted by MiraKimura
                i am sorry, but i don't think picture box has .print method. or am i wrong? i have the same problem. how to solve it?

                i have drawn lines and also put picture box in that picture box. but i cant save any although i have turn on the autoredraw property of the picture box.
                As far as I know, anything you draw on the picture box while AutoRedraw is True will become a permanent part of the picture, and can be saved. However, I can never remember the relationship between the AutoRedraw property and the .Image and .Picture properties.

                I don't know what VB version you are using, but in VB6 the PictureBox control does have a .Print method. What causes confusion is that for some reason it doesn't show up on the popup list of properties and methods when you type the name and add a dot. But trust me, it is there.

                Comment

                • MiraKimura
                  New Member
                  • Sep 2007
                  • 6

                  #9
                  how is the print method works? is it for printing or saving the image? what is the appropriate coding for it? or just simply picturebox.prin t?

                  Comment

                  • Killer42
                    Recognized Expert Expert
                    • Oct 2006
                    • 8429

                    #10
                    Originally posted by MiraKimura
                    how is the print method works? is it for printing or saving the image? what is the appropriate coding for it? or just simply picturebox.prin t?
                    You really should look in your documentation for the syntax. It prints onto the object that the method belongs to. In other words, if you said Form1.Print "Hello" it would print the word "Hello" onto the surface of Form1. The Print method is also supported by the picturebox control, the Printer object and I don't know what else.

                    Comment

                    Working...