如何通过Delphi编程实现位图方向的检测与识别?
- 内容介绍
- 文章标签
- 相关推荐
本文共计181个文字,预计阅读时间需要1分钟。
参考英文答案+Delphi/C++Builder+TBitmap:如何确定扫描行顺序?1个+我需要将TBitmap转换成GDI Bitmap。我无法理解确定TBitmap自身上下或下上的方法。是否有可能发现扫描线顺序?
Can I convert TBitmap to GDI Bitmap? I can't understand how to determine the scanline order inherently in TBitmap. Is there a way to detect the scanline order?
参见英文答案 > Delphi/C++Builder TBitmap: How to determinine scanline order?1个我需要将TBitmap转换为GDI Bitmap.
我无法理解确定TBitmap自上而下或自下而上的方法.
是否有可能发现扫描线订购?
您可以使用Windows API来了解位图线方向(自下而上或自上而下). 您应该调用GetObject函数来获取带有BITMAPINFOHEADER数据的DIBSECTION结构. 但在我的实践中,大多数位图都有自下而上的像素线方向.本文共计181个文字,预计阅读时间需要1分钟。
参考英文答案+Delphi/C++Builder+TBitmap:如何确定扫描行顺序?1个+我需要将TBitmap转换成GDI Bitmap。我无法理解确定TBitmap自身上下或下上的方法。是否有可能发现扫描线顺序?
Can I convert TBitmap to GDI Bitmap? I can't understand how to determine the scanline order inherently in TBitmap. Is there a way to detect the scanline order?
参见英文答案 > Delphi/C++Builder TBitmap: How to determinine scanline order?1个我需要将TBitmap转换为GDI Bitmap.
我无法理解确定TBitmap自上而下或自下而上的方法.
是否有可能发现扫描线订购?
您可以使用Windows API来了解位图线方向(自下而上或自上而下). 您应该调用GetObject函数来获取带有BITMAPINFOHEADER数据的DIBSECTION结构. 但在我的实践中,大多数位图都有自下而上的像素线方向.
