2 Replies - 1581 Views - Last Post: 08 February 2010 - 10:29 PM Rate Topic: -----

#1 adamarek  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 15-November 09

How to save Tag data in .gif file

Posted 06 February 2010 - 04:34 PM

Hi...
I need a help with a Tag and image files. All my files are .gif files and all have the same format. However, some of my 'objects' are located at different positions on the image. I would like to store the position in a Tag and save the Tag with the file. I took a simple approach to it but its not working. This is what I did..


Code:
        dim pathload As string = "C:\myfile.gif")
        dim picViewer1 As  New PictureBox
     Sub graphlocationsave()
        picViewer1.Tag = "116, 72"
        picViewer1.Image.Save((pathload) & Tag)        '    SAVING TAG TO .gif FILE....
    End Sub
    Sub graphlocationload()
        picViewer1.Load((pathload) & Tag)      '  LOADING FILE and TAG
        Dim tag1 = (DirectCast(picViewer1, PictureBox).Tag)
        MsgBox(tag1)
      End Sub



My MsgBox is blank, there is no data...
I know the data get store in the Tag, but I do not know if its not saved, or I am not retriving it correctly or if this is the wrong way to do this altogether ?
Thanks for any help...

Is This A Good Question/Topic? 0
  • +

Replies To: How to save Tag data in .gif file

#2 adamarek  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 15-November 09

Re: How to save Tag data in .gif file

Posted 07 February 2010 - 04:37 AM

I could use any sugestion on how to save a data(string) with a .gif file.
Any tips on how to create a custom attribute and add it to a file ??

This post has been edited by adamarek: 07 February 2010 - 04:39 AM

Was This Post Helpful? 0
  • +
  • -

#3 adamarek  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 15-November 09

Re: How to save Tag data in .gif file

Posted 08 February 2010 - 10:29 PM

Anyone please...
I still need to resolve this problem. Point me in the right direction.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1