Hi,

i've created a JPEG image which is 300 x 50. this image contains 6
images of 50 x 50.

i would like to know how can i tell to my program to use image 1 (from
pixel 0 to 49) at one place and to tell again to use image 3 (from pixel
99 to 149) to another place ?

or does it work only with BMP image ?
how to do it without using MFC ?

thanks a lot,
Maileen

Re: image JPEG and BMP by hughgray

hughgray
Fri Jul 22 13:20:55 CDT 2005

Maileen wrote:
> Hi,
>
> i've created a JPEG image which is 300 x 50. this image contains 6
> images of 50 x 50.
>
> i would like to know how can i tell to my program to use image 1 (from
> pixel 0 to 49) at one place and to tell again to use image 3 (from pixel
> 99 to 149) to another place ?
>
> or does it work only with BMP image ?
> how to do it without using MFC ?
>
> thanks a lot,
> Maileen

Load the image into a CDC, which you should store, and then use BitBlt
to draw each individual image area whenever you need to.

Regards,

Hugh


Re: image JPEG and BMP by hughgray

hughgray
Fri Jul 22 13:26:36 CDT 2005

hughgray@hotmail.co.uk wrote:
> Maileen wrote:
> > Hi,
> >
> > i've created a JPEG image which is 300 x 50. this image contains 6
> > images of 50 x 50.
> >
> > i would like to know how can i tell to my program to use image 1 (from
> > pixel 0 to 49) at one place and to tell again to use image 3 (from pixel
> > 99 to 149) to another place ?
> >
> > or does it work only with BMP image ?
> > how to do it without using MFC ?
> >
> > thanks a lot,
> > Maileen
>
> Load the image into a CDC, which you should store, and then use BitBlt
> to draw each individual image area whenever you need to.
>
> Regards,
>
> Hugh

Sorry I totally missed the part about non-mfc. You can still use the
Win32 version of BitBlt however.

Hugh