Re: Large image
- From: "Hilton" <nospam@xxxxxxxxxx>
- Date: Sat, 2 Feb 2008 13:49:53 -0800
Chris,
The problem there is just trying to load a 3000x3000 bitmap is very likely
to run the device out of memory long before it's fully in memory.
Correct, that's why I said that he should write a "read and decode" method,
essentially the equivalent of "new Bitmap (filename, x, y, cx, cy)".
SetPixel will be painfully slow if attempting to copy the data. It's
probably better to just lock the destination bitmap and use copy methods
to pull from a stream and write it into the scan0 ptr at an offset.
Right, that's why I suggested to use SetPixel while testing (i.e. just get
it working), then use LockBits (i.e. scan0) to optimize, unless using scan0
initially would be best although i doubt it given the number of BMP formats,
pixel depths, etc.
Hilton
"Hilton" <nospam@xxxxxxxxxx> wrote in message
news:l41pj.10164$hI1.6408@xxxxxxxxxxxxxxxxxxxxxxx
If I recall, you're working with BMP images. If that is the case, you
can write a relatively simply method to read and decode the BMP into a
Bitmap object. use SetPixel while testnig and LockBits to optimize.
Hilton
"Broeden" <hihansson@xxxxxxxxxxx> wrote in message
news:d445e050-11a3-4146-b328-c7e5286d81d6@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 31 Jan, 14:58, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote:
Nothing. The community edition is free, so just download, install, add a
reference and use. If you want Studio integration with toolbox support,
help, templates and full source code then you can buy the SDF Extensions
for
Studio for a nominal fee.
Thanks again!
I have install the SDF and tested the samples. I have found out how to
load parts of the image to get a thumbnail of the image.
But is it possible to load for instance the upper left 1000*1000
pixels of a large image?
/Broeden
.
- References:
- Re: Large image
- From: Broeden
- Re: Large image
- From: Hilton
- Re: Large image
- From: <ctacke/>
- Re: Large image
- Prev by Date: Re: Large image
- Next by Date: Re: Large image
- Previous by thread: Re: Large image
- Next by thread: SIP Client Implementation + WM5.0
- Index(es):
Relevant Pages
|