void ESRI.MapObjects2.Custom.ICustomLine.Draw(int hDC, ref int points, ref int partCounts, int numParts)
{
}这里的 points 是指向一个点的内存数组
[DllImport("gdi32.dll", EntryPoint = "PolyPolyline")]
public static extern int PolyPolyline(int hdc, ref int lpPoint, ref int lpLineCounts, int nPart);//绘制多边形可以这样用:
PolyPolyline(hDC, ref points, ref partCounts, numParts);现在我要把这个points转换成类型于
struct POINT
{
int x;
int y;
};
的结构数组,从而获取里面的X,Y值怎么办?!!!谢谢。
{
}这里的 points 是指向一个点的内存数组
[DllImport("gdi32.dll", EntryPoint = "PolyPolyline")]
public static extern int PolyPolyline(int hdc, ref int lpPoint, ref int lpLineCounts, int nPart);//绘制多边形可以这样用:
PolyPolyline(hDC, ref points, ref partCounts, numParts);现在我要把这个points转换成类型于
struct POINT
{
int x;
int y;
};
的结构数组,从而获取里面的X,Y值怎么办?!!!谢谢。
解决方案 »
- C# 中 TextBox 用于模糊查询
- 用rdlc打印报表,怎么可以在ReportViewer控件里预览的时候显示背景图片,打印的时候不打印背景图片?
- DataGridView绑定datatable,改变datatable如何更行DataGridView
- "400分" 求C++和C#的结构体通讯代码,分不够再加!!还望高手帮忙,都1个星期没解决问题啦
- 高分求解,关于主从表的数据绑定问题,高手请进 ????
- CrystalReport的问题,请帮忙看看
- 怎样编辑在内存中的XML文件?
- 如何开启和关闭控件的某个事件?
- PDFCreator转换图片为PDF时,有的旋转了90度
- C#曾么样呀?
- 新手入门自己写的第一个Csharp程序,请各位高手看一下
- Lucene.net实现全文搜索的效率问题
uncheck
{
//...
}
public static extern int PolyPolyline(int hdc,ref POINT lppt,ref int lpdwPolyPoints,int cCount);
说的对
只有很多函数不能这样
所以最好自己解对象
用非托管代码把数据解出来 然后再剩成NET类型
其实很多时候不必要
只要处理关键的数据就可以