Morten
2003-10-02 13:04:02 UTC
Is there any news from Microsoft as to the speed of FrameRgn on these
platforms?
I have come across John Hornick (MS) and Jeff Partch discussion from
Feb-March, and I am extreemely interested. Do anyone know of an SP or
a workaround that will speed up the FrameRgn on XP/2K? I assume if th
Hoping for a positive reply.
Thanks in advance
Morten
Background:
I am using VC++6.0, and have met the same problem as Jeff Partch. Ie.
That FrameRgn, is exeedingly slow on my Win2000/XP computers.
I make connectivity maps in bitmapped images using combine
rgnNew.CombineRgn(this, &rgn,RGN_OR);
and end up with seriously big and complex Regions
The user move the cursor over a region, and it gets highlighted.
The call "PtInRegion(point)" is quite fast, but getting the region
framed, is a slow grinding process.
The OnUpdateCode is this (The class CArea is derived from CRgn with a
few helper functions such as index to speed up things rather than
using the EqualRgn function).
if(m_LastDrawnArea.GetIndex()!=GetDocument()->m_AreaOfInterest.GetIndex()
)
{
CBrush brush(RGB(255,255,255));
int iOldRop2=dc.SetROP2(R2_NOT);
//Deletete previous
dc.FrameRgn( &m_LastDrawnArea,&brush,2,2);
m_LastDrawnArea=GetDocument()->m_AreaOfInterest;
dc.FrameRgn( &m_LastDrawnArea,&brush,2,2);
dc.SetROP2(iOldRop2);
brush.DeleteObject();
}
Particularly when you like I have generally 3 or more views (all
bitmap illustrations of different properties of the sample) open at
the same time and want to FrameRgn in all.
platforms?
I have come across John Hornick (MS) and Jeff Partch discussion from
Feb-March, and I am extreemely interested. Do anyone know of an SP or
a workaround that will speed up the FrameRgn on XP/2K? I assume if th
Hoping for a positive reply.
Thanks in advance
Morten
Background:
I am using VC++6.0, and have met the same problem as Jeff Partch. Ie.
That FrameRgn, is exeedingly slow on my Win2000/XP computers.
I make connectivity maps in bitmapped images using combine
rgnNew.CombineRgn(this, &rgn,RGN_OR);
and end up with seriously big and complex Regions
The user move the cursor over a region, and it gets highlighted.
The call "PtInRegion(point)" is quite fast, but getting the region
framed, is a slow grinding process.
The OnUpdateCode is this (The class CArea is derived from CRgn with a
few helper functions such as index to speed up things rather than
using the EqualRgn function).
if(m_LastDrawnArea.GetIndex()!=GetDocument()->m_AreaOfInterest.GetIndex()
)
{
CBrush brush(RGB(255,255,255));
int iOldRop2=dc.SetROP2(R2_NOT);
//Deletete previous
dc.FrameRgn( &m_LastDrawnArea,&brush,2,2);
m_LastDrawnArea=GetDocument()->m_AreaOfInterest;
dc.FrameRgn( &m_LastDrawnArea,&brush,2,2);
dc.SetROP2(iOldRop2);
brush.DeleteObject();
}
Particularly when you like I have generally 3 or more views (all
bitmap illustrations of different properties of the sample) open at
the same time and want to FrameRgn in all.