wpf - wrong bitmap after scale with renderOptions -



wpf - wrong bitmap after scale with renderOptions -

in dialog, need scale bitmap in cell of datagrid avoid bluring

here myfile.xaml

<datagridtemplatecolumn.celltemplate> <datatemplate> <image margin="1" width="90" height="18" verticalalignment="center" stretch="fill" renderoptions.bitmapscalingmode="nearestneighbor" renderoptions.edgemode="aliased" snapstodevicepixels="true" horizontalalignment="center"> <image.source> <multibinding converter="{staticresource hatchidtopaleteimageconverter}" converterparameter="90"> <binding path="hatchid"/> <binding path="color" /> </multibinding> </image.source> </image> </datatemplate> </datagridtemplatecolumn.celltemplate>

but bitmaps in 5th, 20th row hidden top others ok. if scroll grid vertical scrollbar, hidden image changed: bitmaps in 11st, 26th row hidden top others ok. guess 5th, 20th datagridcell of view wrong.

if remove renderoptions.bitmapscalingmode="nearestneighbor"

the bitmap in rows showed total it's blur.

i seek remove margin or resize row's height it's not work.

i alter height of image. it's work. maybe height of bitmap not same between row of datagrid

height="19"

wpf datagrid dialog render blur

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -