Results 1 to 3 of 3

Thread: how do i do it????????????

  1. #1

    Thread Starter
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241

    Angry

    hi
    ok ,,, i have a program, card designer,,, like buissenes cards and stuff, any way when i finish drawing and designing the card i have to save it,,, its ok,,but some times i have some pix in the card, all i want is how to save manu bitmaps in one file by code, and then restore them, and this file contains some text maybe and stuff, so how do i do it?????

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    Boy... 21 views and no replies... People must really find this one difficult.

    The best way you could do this would be to use the "SavePicture" command to store each individual bitmap... giving it an arbitary name and then attaching it to whatever you did.

    For instance... If your card designer allowed you to add lines and boxes and image boxes etc then you would have to have a name for each control so you simply name the picture with that control.

    What you end up with is a text file that would re-construct the design of your card and the graphics stored in a specific folder

    Imagine this as your text file output :
    Code:
    [Box1]
    Top=10
    Left=10
    Height=100
    Width=200
    Border=1
    Image=images\Box1.bmp
    
    [Line1]
    Top=100
    Left=10
    Width=200
    Thickness=5
    Color=FF0000
    
    [Text1]
    Top=120
    Left=10
    Font=Arial
    FontSize=20
    Text=Company Name
    (Note: Above stuff is just for example, you would have to include anything you specifically wanted to record in there as well)

    Basicially when this file gets read back in it generated your card as if each item was placed on it and then uses the "LoadPicture" statment to get the image you saved out back into it.

    Hope it helps

  3. #3

    Thread Starter
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241
    ok, thanx, but i did this alrerady, my designer allow me to drw boxes and lines, and i did the same thing to save them in a file, but the problem i want the bitmaps to be saved in the same file, but i can't,i have this idea, but i don't know how to apply it, if i can save every pic in a temp. file, then read every file and add it to string, then add all these string to a file, which also contains the data for the boxes and lines, then if i want to open it, i'll reverse the thing, read the file, and then put every bitmap in a temp. file, and....
    what do u think?????
    have any ideas in doing this??????
    please help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width