+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Rami
    Guest

    I can't load a Jpg file into a Imgae control at runtime!!!!!!!!!!!!!!!

    Hello every one
    i want to load a jpg picture into a imgae control at runtime like that:
    - Image1.Picture.Loadfromfile ('C:\aa.jpg');
    But i can't!!!!!!!!!!!!!!!!!!!!!
    i only can do it with bmp:
    - Image1.Picture.Loadfromfile ('C:\aa.bmp');

    Is there is any way i can load a JPG file:confused:

  2. #2
    Senior Member -silent-'s Avatar
    Join Date
    May 2005
    Posts
    1,374
    add jpeg to your uses and it should work
    00101101 01110011 01101001 01101100 01100101 01101110 01110100 00101101


  3. #3
    Rami
    Guest
    Quote Originally Posted by -silent-
    add jpeg to your uses and it should work
    Yes, it worked..
    But it doesn't work with my jpg picture..
    when i capture the screen with this code(see the attachement of this topic):
    Best exemple of Capturing screen into JPG format!!
    and then when i try to load the captured jpg file it doesn't load!!!!!!
    - is there another way to capture screen and save it with .JPG extention?

  4. #4
    Senior Member -silent-'s Avatar
    Join Date
    May 2005
    Posts
    1,374
    hi Rami
    i tested your code using

    Image1.Picture.Loadfromfile ('C:\screen.jpg');

    with that code you posted in that other thread

    and that works fine


    what are you having problems with?
    00101101 01110011 01101001 01101100 01100101 01101110 01110100 00101101


  5. #5
    Senior Member Dark Angel's Avatar
    Join Date
    Feb 2005
    Posts
    389
    Just make
    uses jpeg;
    ok?

  6. #6
    Rami
    Guest
    Quote Originally Posted by -silent-
    hi Rami
    i tested your code using

    Image1.Picture.Loadfromfile ('C:\screen.jpg');

    with that code you posted in that other thread

    and that works fine


    what are you having problems with?

  7. #7
    Rami
    Guest
    It's OK!
    Now i find out the problem and after alot of testing i didn't solve it
    i will post the real problem later in a new thread!

  8. #8
    Senior Member Dark Angel's Avatar
    Join Date
    Feb 2005
    Posts
    389
    ???????????????????????????
    what is the problem

  9. #9
    Rami
    Guest
    please wait..
    It required a new thread and i'll have to post exemples projects(i'm working on it now).
    just wait a little
    and thx cause you're interested

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Best exemple of Capturing screen into JPG format!!
    By Rami in forum General Programming Help
    Replies: 9
    Last Post: 25-03-2008, 11:55

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.