Announcement

Collapse
No announcement yet.

overlay picture on picture

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

  • overlay picture on picture

    I have write a program that display picture on the lcd.
    I use the command

    img_Show(img,n);
    n = the number of the picture.
    there are 112 pictures but the 112 is one gif picture the I want to overlay to each other

    so I want to
    img_Show(img,1)
    and then
    overlay the 112
    img_Show(img,112) and at the backgound to be the 1 photo
    the show the second and overlay the 112

    etc

    I make the 112 as gif and the mask color is the white but when I load it to
    graphic composer it make the photo as jpg

  • #2


    you can use a gif and just pick which frame you want

    Using

    img_SetWord(.............);

    Command

    Comment


    • #3


      You haven't said what display you are using.

      If you have a display that supports transparency, then all you may need to do is add

      gfx_TransparentColour('your transparent colopr');
      gfx_Transparency(ON);

      to your code
      Mark

      Comment


      • #4


        HI,
        I am using the LG L1753s Flatron monitor

        at my manual the gfx_Transparentcolour is not implement So the white which number is it?

        my code is
        while (n>0)
        img_Show(img,n); // show the picture
        img_Show(img,112); /* 112 is the index of the gif that I want to overlay to previuos picture*/
        n--;

        pause (1500);
        wend

        Comment


        • #5


          ok
          now I have transparent the gif picture but the second img_show delete the previous picture and the transparensy is the main color of the previouse picture.
          if the main color is orange of the picture then the second img_show with the gif picture will show and the transparent area is orange color or any color of the privious picture.
          I want to show both img_show A and the img_show B (the gif) together on the screen.

          Comment


          • #6


            Not sure I follow exactly.



            Anyway you can change the transparent color between each img_Show. It doesn't have to be the same for all images.
            Mark

            Comment


            • #7


              i want to have a picture and on that picture to overlay an other.
              Now
              I show the picture that have the most of the shape red color or somthing about the red color.
              then when I show the picture that I want to overlay to the previous the system delete the previous picture and show the next This picture is gif and the trasparent color is the white. At the position that the picture have white the system show the red or the tone of the red of the previous
              example
              the first picture is a forest with a tank in the middle (the most color is tone of the green)
              On this picture I want to over lay the pircture that write (have 3 lines with 48point lettrs)
              first line 0,5euro for 10 minute
              2nd line 1 euro for 20 minute
              3rd line 2 euro for 40 minute
              this picture is gif with wihite transparent color

              the system show the first picture and after i show the second I can not see the forest and the tank because the trasparent color replaced by a tone of green

              I have gfx_transpaterntcolor(white)
              gfx_transpaerncy(on)

              Comment


              • #8


                Can you post the images, or if you don't want to post them, email them to mark at 4systems dot com dot au



                Thanks
                Mark

                Comment


                • #9


                  how to post the images?

                  Comment


                  • #10


                    can you not just edit the gif so it shows the previous frame also

                    Comment


                    • #11


                      Zip them up and click on 'manage attachments' and attach the zip file
                      Mark

                      Comment


                      • #12


                        24 is the A picture
                        xrhma.gif is the B picture to overlay
                        24_1 is what I want to see
                        xrhma_1 is what it show to me


                        33 is the next picture
                        xrhma.gif is the overlay
                        33_1 is what I want to see
                        33_xrhma_1 is what it show to me

                        ******
                        is there any way to write these 3 lines direct on the picture after I show on the screen, with 48 point letters
                        I want to have the follow 3 lines into a file valus.txt

                        0.5euro for 10 min
                        1 euro " 20 min
                        2 euro " 40 min

                        and then read the lines intio var Line1[20], Line2[20], Line3[30]

                        and img_show(img,n);
                        and print at location lin2
                        location 2 line 2
                        location 3 line 3

                        and go on

                        I want to use it as screen saver

                        at the web page http://www.kalarakis.com/html/coin_vga.html
                        there is a video in the midle of the page that show what i wan to do
                        Now I have in to the flash ready to show pictures


                        Attached files PICTURES1.zip (529 KB) PICTURES2.zip (967.3 KB)

                        Comment


                        • #13


                          Transparent overlays are not supported on the current uVGA PmmC, however, there will be a new PmmC released soon that supports transparency.
                          Regards,
                          Dave

                          Comment

                          Working...
                          X