Re: DIB & GDI, How can I change a bmp or tiff and save it?
- From: "Feng Yuan [MSFT]" <fyuan@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 9 Jun 2006 13:33:01 -0700
It's not color profile, it's performance profiling.
Check http://blogs.msdn.com/ianhu/archive/2006/04/07/571050.aspx
--
Feng Yuan [MSFT] http://blogs.msdn.com/fyuan
"Yang Ming-liang" <collays@xxxxxxx> wrote in message
news:uc1pah4iGHA.4344@xxxxxxxxxxxxxxxxxxxxxxx
Thanks for your suggestions,still there are something unclearly:
for[1]: You mean that we should use the minimum color depth in memory when
display it, and use the original color depth when we change it really. Am
I
right?
for[2]: I know that load part of the image data that we will display is a
basic discipline in image processing. That is to say when we need to load
other area of the image, for example we use the scroll bar, we need
recalculate the current display coordinates and find the corresponding
data
in the image file, and then load it into memory and redraw it. Am I right?
for[3]: Yes, I have use the double-buffering method, I think the two
buffer
need only to save the data-segment that will display. Am I right?
for[4]: Yes, I remember it.
for[5]: profile? I only hear that the profile is used in the COLOR
MANAGEMENT, What`s mean here?
"Feng Yuan [MSFT]" <fyuan@xxxxxxxxxxxxxxxxxxxx> дÈëÏûÏ¢ÐÂÎÅ
:OAvOftziGHA.1640@xxxxxxxxxxxxxxxxxxxxxxx
When handling huge images, you need to do lots of special optimization.running
Here are some things to consider:
1) Use the minimum color depth in memory.
2) For initial display, load/decode what is needed for display. Both
BMP/TIFF should be able to be loaded partially.
3) When images are displayed repeatitively, consider double buffering or
scale down to a bitmap of a right display resolution.
4) Avoid unnecessary memory copy.
5) Profile.
--
Feng Yuan [MSFT] http://blogs.msdn.com/fyuan
"Yang Ming-liang" <collays@xxxxxxx> wrote in message
news:OnOAhlsiGHA.4040@xxxxxxxxxxxxxxxxxxxxxxx
[1]My picture has very high resolution(from 600DPI to 1200DPI),usually
500MB
or even larger.So I think you have guess it,that is my program is
very slow,especially when you use the scroll bar. Actually it can not
be
used.
.
- References:
- DIB & GDI, How can I change a bmp or tiff and save it?
- From: Yang Ming-liang
- Re: DIB & GDI, How can I change a bmp or tiff and save it?
- From: Feng Yuan [MSFT]
- Re: DIB & GDI, How can I change a bmp or tiff and save it?
- From: Yang Ming-liang
- DIB & GDI, How can I change a bmp or tiff and save it?
- Prev by Date: Re: Preventing text overlap
- Next by Date: Label printer that does not require it's own programming language.
- Previous by thread: Re: DIB & GDI, How can I change a bmp or tiff and save it?
- Next by thread: Preventing text overlap
- Index(es):
Relevant Pages
|