C# - present image files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dafna m

    #1

    C# - present image files



    Hi,
    1. How can I present diffrent image type (jpg, bmp, bpm..)
    2. How can I present video file as a picture

    Can I fo it by a built in function (in C#)?


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Jasper Kent

    #2
    Re: C# - present image files

    Displaying an image is pretty easy:

    Graphics g = ...;

    Image i = Image.FromFile ("c:\\SomeImage .jpg");

    g.DrawImage (i,0,0);

    This works with most types of image file, and there's lots of
    variations. To use a hackneted phrase, look it up in Petzold
    (Programming Microsoft Windows with C# - Microsoft Press).

    I don't know about video, though.

    Regards,

    Jasper Kent

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!

    Comment

    • Michael Mayer

      #3
      Re: C# - present image files

      Please see the other thread where I posted. Ugh. Why post the same thing
      twice!

      "Dafna m" <mozel@012.net. il> wrote in message
      news:OSEBPyDdDH A.1772@TK2MSFTN GP10.phx.gbl...[color=blue]
      >
      >
      > Hi,
      > 1. How can I present diffrent image type (jpg, bmp, bpm..)
      > 2. How can I present video file as a picture
      >
      > Can I fo it by a built in function (in C#)?
      >
      >
      > *** Sent via Developersdex http://www.developersdex.com ***
      > Don't just participate in USENET...get rewarded for it![/color]


      Comment

      Working...