Information générale
Catégorie:
Visual FoxPro Beta
Regarding optimizing...
.oBrush.Create( 0xA8000000 )
.oStringFormat.StringFormat.Create()
.oStringFormat.Alignment= GDIPLUS_ALIGNMENT_FAR
.oFont.Create(...)
.oGR.DrawStringW( m.tcContentsToBeRendered ;
, .oFont ;
, .oGR.MakeGdipRectF( x,y,w,h) ;
, .oStringFormat ;
, .oBrush
)
That's what I meant. And if you want to draw in 100% black, you can leave the brush out entirely.
But if your current code works perfectly, it might be best to leave it alone. It's
Note you can keep the brush, font,stringformat objects hanging round indefinitely, but the graphics handle can change on you so don't optimize out the SetHandle().
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement