iTextSharp.text.Rectangle 使用方法说明
生活随笔
收集整理的這篇文章主要介紹了
iTextSharp.text.Rectangle 使用方法说明
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
iTextSharp.text.Rectangle 使用過程中,由于這方面的中文資料較少,帶來了很多不便,消耗了工作時(shí)間,
iTextSharp.text.Rectangle 的構(gòu)造函數(shù)如下:
public?Rectangle(float?llx,?float?lly,?float?urx,?float?ury); 從構(gòu)造函數(shù)的參數(shù)命名上根本看不出是什么意思,雖然我從Rectangle 的語義上可以看出是定義了一個(gè)區(qū)域,但不知道這四個(gè)參數(shù)的坐標(biāo)原點(diǎn)在哪里,所以不弄清其語義將產(chǎn)生很多意外的情況,讓你不知所措。
public?Rectangle(float?llx,?float?lly,?float?urx,?float?ury);
llx 為Left ,lly 為Bottom,urx 為Right,ury 為Top
其中:Width=Right - Left?? Heigth = Top - Bototom
坐標(biāo)原點(diǎn)為:左下角
iTextSharp.text.Rectangle 的構(gòu)造函數(shù)如下:
public?Rectangle(float?llx,?float?lly,?float?urx,?float?ury); 從構(gòu)造函數(shù)的參數(shù)命名上根本看不出是什么意思,雖然我從Rectangle 的語義上可以看出是定義了一個(gè)區(qū)域,但不知道這四個(gè)參數(shù)的坐標(biāo)原點(diǎn)在哪里,所以不弄清其語義將產(chǎn)生很多意外的情況,讓你不知所措。
public?Rectangle(float?llx,?float?lly,?float?urx,?float?ury);
llx 為Left ,lly 為Bottom,urx 為Right,ury 為Top
其中:Width=Right - Left?? Heigth = Top - Bototom
坐標(biāo)原點(diǎn)為:左下角
轉(zhuǎn)載于:https://www.cnblogs.com/yyj/archive/2008/06/03/1212951.html
總結(jié)
以上是生活随笔為你收集整理的iTextSharp.text.Rectangle 使用方法说明的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: c++判断奇偶_高中数学奇偶性说课稿范文
- 下一篇: 70后、80后、90后的区别(很有意思)