Results 1 to 5 of 5

Thread: [2005] Loading picture

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    96

    [2005] Loading picture

    I have a picture which consist of many picture, how to read the small picture one by one???

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Loading picture

    Are you saying that you have multiple image files and you want to create a single large image containing them all?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    96

    Re: [2005] Loading picture

    NoNo
    Sorry for my poor english (I am chinese)...

    Let me explain again

    Do you play LF2 before?

    A jpeg file which contain many picture (every picture is in one rectangle)

    How can I read the picture one by one?

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2005] Loading picture

    I'm not sure if there's another way but you can create an Image object from the entire image, then create a new Bitmap object of the dimensions of a sub-image, then create a Graphics object from the new Bitmap, then use the appropriate overload of Graphics.DrawImage to draw the desired portion of the original Image onto the new Bitmap.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5
    PowerPoster sparrow1's Avatar
    Join Date
    May 2005
    Location
    Globetrotter
    Posts
    2,820

    Re: [2005] Loading picture

    Quote Originally Posted by s021126
    NoNo
    Sorry for my poor english (I am chinese)...

    Let me explain again

    Do you play LF2 before?

    A jpeg file which contain many picture (every picture is in one rectangle)

    How can I read the picture one by one?
    Hi,

    I think you can use a Thumbnail for that.
    So, here's a link where you can find some information how it works.

    http://www.codeproject.com/dotnet/multiImageViewer.asp

    You can also try the Image.GetThumbnailImage method.

    http://msdn2.microsoft.com/en-us/lib...nailimage.aspx

    Wkr,

    sparrow1
    Last edited by sparrow1; Mar 9th, 2007 at 07:20 AM.
    Wkr,
    sparrow1

    If I helped you, don't forget to Rate my post. Thank you

    I'm using Visual Studio.Net 2003 and
    2005
    How to learn VB.Net Create setup with VB 2005 Drawing for beginners VB.Net Tutorials GDI+ Tutorials
    Video's for beginners

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