Re: DIB & GDI, How can I change a bmp or tiff and save it?

Tech-Archive recommends: Fix windows errors by optimizing your registry



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.

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
running
very slow,especially when you use the scroll bar. Actually it can not
be
used.






.



Relevant Pages

  • Re: Draw Performance Improvement
    ... >> same bit depth and bit masks as the primary display driver. ... >> and not the display card's video memory. ... For the display hardware to ... >> do is profile and see where the cycles are actually going. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: DIB & GDI, How can I change a bmp or tiff and save it?
    ... display it, and use the original color depth when we change it really. ... and then load it into memory and redraw it. ... Use the minimum color depth in memory. ...
    (microsoft.public.win32.programmer.gdi)
  • Re: Photoshop and Huey: Double color correction?
    ... profile of my monitor the measured colors are ... Photoshop copies the RGB values directly from the clipboard into the image. ... and uses the display profile to convert those colors ... Photoshop converts your sRGB colors to display space. ...
    (alt.graphics.photoshop)
  • Re: Images not displaying in Powerpoint
    ... its on the user profile. ... anyone else can see the images properly in PowerPoint. ... "Peter Lawton" wrote: ... images in an old presentation with new images these display correctly. ...
    (microsoft.public.powerpoint)
  • Re: Getting Color Depth / Quality of display adpater / screen
    ... At least we know now - thanks Carlos. ... known Windows "bug") that requires our systems to have the Color Depth ... or "Color Quality" (bits per pixel) of the display adapter to ... need to change their display properties to 16 bit. ...
    (microsoft.public.dotnet.languages.vb)