glp-nj
路人甲
路人甲
  • 注册日期2006-12-28
  • 发帖数9
  • QQ
  • 铜币144枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:2071回复:5

QueryPixelBlock函数在C#+AE9.0开发中运行没结果,大家帮帮我吧

楼主#
更多 发布于:2007-04-28 16:56
<P>QueryPixelBlock方法在tin的坡度分析,tin 转为raster中都要用到,可这个函数运行,还是不运行结果是一样的,raster是空的,没能得到象素值。谁能帮我一下。这是不是9.0的bug,用9.2版本是不是就没问题了。谁在.net用了,帮我一把。</P>
喜欢0 评分0
glp-nj
路人甲
路人甲
  • 注册日期2006-12-28
  • 发帖数9
  • QQ
  • 铜币144枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2007-04-28 17:04
<P>自己顶一下!</P>
举报 回复(0) 喜欢(0)     评分
mrjiou
路人甲
路人甲
  • 注册日期2004-07-03
  • 发帖数78
  • QQ
  • 铜币474枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2007-05-16 08:51
<P>可能,9.0中的bug很多,建议9.2 </P>
举报 回复(0) 喜欢(0)     评分
hanunhua
路人甲
路人甲
  • 注册日期2005-03-21
  • 发帖数17
  • QQ
  • 铜币149枚
  • 威望0点
  • 贡献值0点
  • 银元0个
3楼#
发布于:2007-07-31 21:41
<TABLE>

<TR>
<TD class=postvalue>In .Net, the workaround is to use the method IGeoDatabaseBridge2.QueryPixelBlock: <BR><a href="http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriGeoDatabase/IGeoDatabaseBridge2_QueryPixelBlock.htm" target="_blank" >http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriGeoDatabase/IGeoDatabaseBridge2_QueryPixelBlock.htm</A> <BR><BR>And call IPixelBlock3.set_PixelData before calling IRawPixels.Write. <BR><BR>Hope this helps. <BR><BR> </TD></TR>
<TR>
<TH>
</TH>
<TD><PRE>IGeoDatabaseBridge2 pbridge2 = (IGeoDatabaseBridge2) new GeoDatabaseHelperClass();
    pbridge2.QueryPixelBlock(...,(System.Object) pixelData);

And


   pixelBlock3.set_PixelData(plane, (System.Object) pixelData);
   rawPixels.Write(pixelBlockOrigin, (IPixelBlock) pixelBlock3);

</PRE> </TD></TR></TABLE>
举报 回复(0) 喜欢(0)     评分
hanunhua
路人甲
路人甲
  • 注册日期2005-03-21
  • 发帖数17
  • QQ
  • 铜币149枚
  • 威望0点
  • 贡献值0点
  • 银元0个
4楼#
发布于:2007-07-31 21:42
<P>In .Net, the workaround is to use the method IGeoDatabaseBridge2.QueryPixelBlock: <BR><a href="http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriGeoDatabase/IGeoDatabaseBridge2_QueryPixelBlock.htm" target="_blank" >http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriGeoDatabase/IGeoDatabaseBridge2_QueryPixelBlock.htm</A> </P>
<P>And call IPixelBlock3.set_PixelData before calling IRawPixels.Write. </P>
<P>Hope this helps. </P>
<P> <BR>  IGeoDatabaseBridge2 pbridge2 = (IGeoDatabaseBridge2) new GeoDatabaseHelperClass();<BR>    pbridge2.QueryPixelBlock(...,(System.Object) pixelData);</P>
<P>And </P>
<P><BR>   pixelBlock3.set_PixelData(plane, (System.Object) pixelData);<BR>   rawPixels.Write(pixelBlockOrigin, (IPixelBlock) pixelBlock3);</P>
<img src="images/post/smile/dvbbs/em08.gif" />
举报 回复(0) 喜欢(0)     评分
hanunhua
路人甲
路人甲
  • 注册日期2005-03-21
  • 发帖数17
  • QQ
  • 铜币149枚
  • 威望0点
  • 贡献值0点
  • 银元0个
5楼#
发布于:2007-07-31 21:46
<P>In .Net, the workaround is to use the method IGeoDatabaseBridge2.QueryPixelBlock: <BR></P>
<P>And call IPixelBlock3.set_PixelData before calling IRawPixels.Write. </P>
<P>Hope this helps. </P>
<P>  <BR>  IGeoDatabaseBridge2 pbridge2 = (IGeoDatabaseBridge2) new GeoDatabaseHelperClass();<BR>    pbridge2.QueryPixelBlock(...,(System.Object) pixelData);</P>
<P>And </P>
<P><BR>   pixelBlock3.set_PixelData(plane, (System.Object) pixelData);<BR>   rawPixels.Write(pixelBlockOrigin, (IPixelBlock) pixelBlock3);</P>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部