亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? arccpic.pas

?? 矢量圖源代碼 包括直線文本矩形等等
?? PAS
?? 第 1 頁 / 共 3 頁
字號:
           //mouseDiffX := mouseOldX - mouseDownOldX;
           mouseDiffY := mouseOldY - mouseDownOldY;
           //繪制圖元
           rateX :=1; // (RectW-MouseDiffX)/RectW;
           rateY := (RectH+MouseDiffY)/RectH;
           ConverPointXY;
           ChangPointXY;
           //繪制當前虛線圖元
           //mouseDiffX := mouseX - mouseDownOldX;
           mouseDiffY := mouseY - mouseDownOldY;
           //繪制圖元
           rateX :=1; // (RectW-MouseDiffX)/RectW;
           rateY := (RectH+MouseDiffY)/RectH;
           //坐標變換
           ConverPointXY;
           ChangPointXY;
         //end;
       end;
     POS_LEFTCENTER: //      :Integer = 8  ; //左中
       begin
         {if (ssCtrl in ArccKeyState) then begin
           //清除前一次
           Center :=Point ((StartPos.x + Endpos.x) div 2,(StartPos.y + Endpos.y) div 2);
           mouseDiffX := mouseOldX - mouseDownOldX;
           //mouseDiffY := mouseOldY - mouseDownOldY;
           //繪制圖元
           tmpsp.X:=StartPos.X+MouseDiffX;
           tmpsp.Y:=StartPos.Y;
           tmpep.X :=EndPos.X-MouseDiffX;
           tmpep.Y :=EndPos.Y;
           //坐標變換
           ChangPointXY;
           //繪制當前虛線圖元
           mouseDiffX := mouseX - mouseDownOldX;
           //mouseDiffY := mouseY - mouseDownOldY;
           //繪制圖元
           tmpsp.X:=StartPos.X+MouseDiffX;
           tmpsp.Y:=StartPos.Y;
           tmpep.X :=EndPos.X-MouseDiffX;
           tmpep.Y :=EndPos.Y;
           //坐標變換
           ChangPointXY;
         end else begin  }
           //清除前一次
           mouseDiffX := mouseOldX - mouseDownOldX;
           //mouseDiffY := mouseOldY - mouseDownOldY;
           //繪制圖元
           rateX := (RectW-MouseDiffX)/RectW;
           rateY :=1; // (RectH-MouseDiffY)/RectH;
           ConverPointXY;
           ChangPointXY;
           //繪制當前虛線圖元
           mouseDiffX := mouseX - mouseDownOldX;
           //mouseDiffY := mouseY - mouseDownOldY;
           //繪制圖元
           rateX := (RectW-MouseDiffX)/RectW;
           rateY :=1; // (RectH-MouseDiffY)/RectH;
           //坐標變換
           ConverPointXY;
           ChangPointXY;
         //end;
       end;
     POS_ARCSTART:  //圓弧起點
       begin
         //繪制圖元
         {if fARccType=ARCC_ARC Then} StartToEnd:=True;
         mouseDiffX := mouseOldX - mouseDownOldX;
         mouseDiffY := mouseOldY - mouseDownOldY;
         tmpsp :=StartPos;
         tmpep := EndPos;
         pp[1].X:=arcstartpos.X+mouseDiffX;
         pp[1].Y:=arcstartPos.Y+mouseDiffY;
         tmparcsp:=PointToCirclePoint(StartPos,EndPos,pp[1]);
         tmparcep:=ArcEndPos;
         ChangPointXY;
         //繪制當前虛線圖元
         //繪制圖元
         mouseDiffX := Mousex-mouseDownOldX;
         mouseDiffY := MouseY-mouseDownOldY;
         tmpsp :=StartPos;
         tmpep := EndPos;
         pp[1].X:=arcstartpos.X+mouseDiffX;
         pp[1].Y:=arcstartPos.Y+mouseDiffY;
         tmparcsp:=PointToCirclePoint(StartPos,EndPos,pp[1]);
         tmparcep:=ArcEndPos;
         ChangPointXY;
       end;
     POS_ARCEND: //圓角左
       begin
         mouseDiffX := mouseOldX - mouseDownOldX;
         mouseDiffY := mouseOldY - mouseDownOldY;
         tmpsp :=StartPos;
         tmpep := EndPos;
         pp[1].X:=arcendpos.X+mouseDiffX;
         pp[1].Y:=arcendPos.Y+mouseDiffY;
         tmparcsp:=ArcStartPos;
         tmparcep:=PointToCirclePoint(StartPos,EndPos,pp[1]);
         ChangPointXY;
         //繪制當前虛線圖元
         //繪制圖元
         mouseDiffX := Mousex-mouseDownOldX;
         mouseDiffY := MouseY-mouseDownOldY;
         tmpsp :=StartPos;
         tmpep := EndPos;
         pp[1].X:=arcendpos.X+mouseDiffX;
         pp[1].Y:=arcendPos.Y+mouseDiffY;
         tmparcsp:=ArcStartPos;
         tmparcep:=PointToCirclePoint(StartPos,EndPos,pp[1]);
         ChangPointXY;
       end;
     POS_CENTER: //         :Integer = 9  ; //矩形中央
       begin
         //繪制圖元
         mouseDiffX := mouseOldX - mouseDownOldX;
         mouseDiffY := mouseOldY - mouseDownOldY;
         tmpsp :=Point( startPos.x + mouseDiffX,startPos.y + mouseDiffY);
         tmpep := Point( endPos.x + mouseDiffX,endPos.y + mouseDiffY);
         tmparcsp :=Point( arcstartPos.x + mouseDiffX,arcstartPos.y + mouseDiffY);
         tmparcep := Point( arcendPos.x + mouseDiffX,arcendPos.y + mouseDiffY);
         ChangPointXY;
         //繪制當前虛線圖元
         mouseDiffX := mouseX - mouseDownOldX;
         mouseDiffY := mouseY - mouseDownOldY;
         //繪制圖元
         tmpsp :=Point(startPos.x + mouseDiffX, startPos.y + mouseDiffY);
         tmpep := Point(endPos.x + mouseDiffX,endPos.y + mouseDiffY);
         tmparcsp :=Point( arcstartPos.x + mouseDiffX,arcstartPos.y + mouseDiffY);
         tmparcep := Point( arcendPos.x + mouseDiffX,arcendPos.y + mouseDiffY);
         //坐標變換
         ChangPointXY;
       end;
  end;
end;

procedure TArccPic.PicChangedUpdate(ACanvas:TCanvas; mouseInPos: MOUSE_POS;chooseRect: TRect; //選擇圖元形成的矩形
        mouseDownOldX, mouseDownOldY: Integer; mouseX, mouseY: Integer);  //鼠標當前的坐標
var
  tmprect:TRect;
  MouseDiffX,MouseDiffY:Integer;
  Center:TPoint;
  ratex,ratey:Single;
  rectw,recth:Integer;
  procedure UpdateConverPointXY;
  begin
    StartPos.X:=Center.X+ Round((StartPos.x - Center.x) *  rateX);
    StartPos.Y:=Center.Y+ Round((StartPos.Y - Center.Y) *  rateY);
    endPos.X:=Center.X+ Round((endPos.x - Center.x) *  rateX);
    endPos.Y:=Center.Y+ Round((EndPos.Y - Center.Y) *  rateY);
    arcstartPos.X:=Center.X+ Round((ArcStartPos.x - Center.x) *  rateX);
    arcstartpos.Y:=Center.Y+ Round((ArcStartPos.Y - Center.Y) *  rateY);
    arcendpos.X:=Center.X+ Round((ArcendPos.x - Center.x) *  rateX);
    arcendpos.Y:=Center.Y+ Round((ArcendPos.Y - Center.Y) *  rateY);
  end;
begin
  //計算選擇圖元的寬度和高度
  MouseDiffX:=Mousex-MouseDownOldX;
  MouseDiffY:=MouseY-MouseDownOldY;
  RectW:=EndPos.X-StartPos.X;
  RectH:=EndPos.Y-StartPos.Y;
  Center :=Point ((StartPos.x + Endpos.x) div 2,(StartPos.y + Endpos.y) div 2);
  case mouseInPos of
    POS_LEFTTOP: //           :Integer = 1  ; //左上
      begin
        //確定基準點
        {if (ssCtrl in ArccKeyState) then begin
          StartPos:=Point(Mousex,mouseY);
          EndPos.X:=EndPos.X-MouseDiffX;
          EndPos.Y:=EndPos.Y-MouseDiffY;
        end else begin }
          rateX := (RectW-MouseDiffX)/RectW;
          rateY := (RectH-MouseDiffY)/RectH;
          UpdateConverPointXY;
        //end;
      end;
    POS_RIGHTTOP: //        :Integer = 2  ; //右上
      begin
        //確定基準點
        {if (ssCtrl in ArccKeyState) then begin
          StartPos.X:=StartPos.X-MouseDiffX;
          StartPos.Y:=MouseY;
          EndPos.X:=MouseX;
          EndPos.Y:=EndPos.Y-MouseDiffY;
        end else begin   }
          rateX := (RectW+MouseDiffX)/RectW;
          rateY := (RectH-MouseDiffY)/RectH;
          UpdateConverPointXY;
        //end;
      end;
    POS_RIGHTBOTTOM: //     :Integer = 3  ; //右下
      begin
        {if (ssCtrl in ArccKeyState) then begin
          StartPos.X:=StartPos.X-MouseDiffX;
          StartPos.Y:=StartPos.Y-MouseDiffY;
          EndPos.X:=MouseX;
          EndPos.Y:=MouseY;
        end else begin }
          rateX := (RectW+MouseDiffX)/RectW;
          rateY := (RectH+MouseDiffY)/RectH;
          UpdateConverPointXY;
        //end;
      end;
    POS_LEFTBOTTOM: //      :Integer = 4  ; //左下
      begin
        {if (ssCtrl in ArccKeyState) then begin
          StartPos.X:=MouseX;
          StartPos.Y:=StartPos.Y-MouseDiffY;
          EndPos.X:=EndPos.X-MouseDiffX;
          EndPos.Y:=MouseY;
        end else begin  }
          rateX := (RectW-MouseDiffX)/RectW;
          rateY := (RectH+MouseDiffY)/RectH;
          UpdateConverPointXY;
        //end;
      end;
    POS_CENTERTOP: //       :Integer = 5  ; //上中
      begin
        {if (ssCtrl in ArccKeyState) then begin
          StartPos.Y:=MouseY;
          EndPos.Y:=EndPos.Y-MouseDiffY;
        end else begin }
          rateX :=1; // (RectW-MouseDiffX)/RectW;
          rateY := (RectH-MouseDiffY)/RectH;
          UpdateConverPointXY;
        //end;
      end;
    POS_RIGHTCENTER: //      :Integer = 6  ; //右中
      begin
        {if (ssCtrl in ArccKeyState) then begin
          StartPos.X:=StartPos.X-MouseDiffX;
          EndPos.X:=EndPos.X+MouseDiffX;
        end else begin }
          rateX := (RectW+MouseDiffX)/RectW;
          rateY :=1; // (RectH-MouseDiffY)/RectH;
          UpdateConverPointXY;
        //end;
      end;
    POS_CENTERBUTTOM: //     :Integer = 7  ; //下中
      begin
        {if (ssCtrl in ArccKeyState) then begin
          StartPos.Y:=StartPos.Y-MouseDiffY;
          EndPos.Y:=MouseY;
        end else begin  }
          rateX :=1; // (RectW-MouseDiffX)/RectW;
          rateY := (RectH+MouseDiffY)/RectH;
          UpdateConverPointXY;
        //end;
      end;
    POS_LEFTCENTER: //      :Integer = 8  ; //左中
      begin
        {if (ssCtrl in ArccKeyState) then begin
          StartPos.X:=StartPos.X+MouseDiffX;
          EndPos.X:=EndPos.X-MouseDiffX;
        end else begin  }
          rateX := (RectW-MouseDiffX)/RectW;
          rateY :=1; // (RectH-MouseDiffY)/RectH;
          UpdateConverPointXY;
        //end;
      end;
    POS_ARCSTART:  //圓角上
       begin
         center.X:=arcstartpos.X+mouseDiffX;
         center.Y:=arcstartPos.Y+mouseDiffY;
         ArcStartPos:=PointToCirclePoint(StartPos,EndPos,Center);
       end;
    POS_ARCEND: //圓角左
       begin
         center.X:=arcendpos.X+mouseDiffX;
         center.Y:=arcendPos.Y+mouseDiffY;
         ArcEndPos:=PointToCirclePoint(StartPos,EndPos,Center);
       end;
    POS_CENTER: //         :Integer = 9  ; //矩形中央
      begin
        Inc(startPos.x, MouseDiffx);
        Inc(startPos.y, MouseDiffY);
        Inc(endPos.x,   MouseDiffx);
        Inc(endPos.y,   MouseDiffY);
        Inc(arcstartPos.x, MouseDiffx);
        Inc(arcstartPos.y, MouseDiffY);
        Inc(arcendPos.x,   MouseDiffx);
        Inc(arcendPos.y,   MouseDiffY);
      end;
  end;
  //統一調整圖元矩形區域和起點和終點的位置
  //保證起點坐標小于終點坐標
  with tmpRect do  begin //調整圖元矩形區域
    Left := Min(startPos.x, endPos.x);
    Top := Min(startPos.y, endpos.Y);
    Right := Max(startPos.x, endPos.x);
    Bottom := Max(startPos.y, endPos.y);
    if Right = Left then  Inc(Right, 2);
    if Top = Bottom then   Inc(Bottom, 2);
    //更新坐標點
  end;
  StartPos:=tmpRect.TopLeft;
  EndPos:=tmpRect.BottomRight;
  PicRect:=tmpRect;
end;

//位置代碼可參見 PicConst.pas
procedure TArccPic.AssignPic(SourcePic: TPicBase);
begin
  inherited AssignPic(SourcePic);
  StartPos := TArccPic(SourcePic).PicStartPoint;
  EndPos := TArccPic(SourcePic).PicEndPoint;
  ArcStartPos:= TArccPic(SourcePic).PicArcStart;
  ArcEndPos:=TArccPic(SourcePic).PicArcStop;
  fArccType:=TArccPic(SourcePic).PicArccType;
end;

//非重載函數
//繪圖函數
procedure TArccPic.DrawArccPic(ACanvas: TCanvas; startPoint:TPoint; endPoint:TPoint;ArcsPoint:TPoint;ArcePoint:TPoint);
begin
  Case fArccType of     //Arcc_Arc,Arcc_Sector,Acrr_Chord
    Arcc_Arc: // Arc
      begin
        ACanvas.Arc(StartPoint.X,StartPoint.Y, EndPoint.X, EndPoint.Y, ArcSPoint.X,
          ArcSPoint.Y,ArcePoint.X, ArcePoint.Y);
      end;
    Arcc_Sector: //PIE
      begin
        ACanvas.Pie(StartPoint.X,StartPoint.Y, EndPoint.X, EndPoint.Y, ArcSPoint.X,
          ArcSPoint.Y,ArcePoint.X, ArcePoint.Y);
      end;
    Arcc_Chord: //Chord
      begin
        ACanvas.Chord(StartPoint.X,StartPoint.Y, EndPoint.X, EndPoint.Y, ArcSPoint.X,
          ArcSPoint.Y,ArcePoint.X, ArcePoint.Y);
      end;
  end;
  PicId:=PIC_ARCC;
end;

procedure TArccPic.GetClassDataFromChar(var Len:Integer; var Buf:Array of Char);
var
  op,P:Pointer;
  oLen:Integer;
begin
  inherited GetClassDataFromChar(Len,Buf);
  olen:=Len;
  p:=Pointer(@Buf[Len]);
  op:=p;
  fArccType:=TArccType(PByte(P)^);
  Inc(PByte(P));
  StartPos.X:=PInteger(P)^;
  Inc(PInteger(P));
  StartPos.Y:=PInteger(P)^;
  Inc(PInteger(P));
  EndPos.X:=PInteger(P)^;
  Inc(PInteger(P));
  EndPos.Y:=PInteger(P)^;
  Inc(PInteger(P));
  ArcStartPos.X:=PInteger(P)^;
  Inc(PInteger(P));
  ArcStartPos.Y:=PInteger(P)^;
  Inc(PInteger(P));
  ArcEndPos.X:=PInteger(P)^;
  Inc(PInteger(P));
  ArcEndPos.Y:=PInteger(P)^;
  Inc(PInteger(P));
  //Len:=oLen+AddrOffSet(op,P);
  Len:=oLen+LongInt(P)-LongInt(Op);
end;

procedure TArccPic.SaveClassDataToChar(var Len:Integer; var Buf:Array of Char);
var
  op,P:Pointer;
  oLen:Integer;
begin
  inherited SaveClassDataToChar(Len,Buf);
  olen:=Len;
  p:=Pointer(@Buf[Len]);
  op:=p;
  PByte(P)^:=Ord(fArccType);
  Inc(PByte(P));
  PInteger(P)^:=StartPos.X;
  Inc(PInteger(P));
  PInteger(P)^:=StartPos.Y;
  Inc(PInteger(P));
  PInteger(P)^:=EndPos.X;
  Inc(PInteger(P));
  PInteger(P)^:=EndPos.Y;
  Inc(PInteger(P));
  PInteger(P)^:=ArcStartPos.X;
  Inc(PInteger(P));
  PInteger(P)^:=ArcStartPos.Y;
  Inc(PInteger(P));
  PInteger(P)^:=ArcEndPos.X;
  Inc(PInteger(P));
  PInteger(P)^:=ArcEndPos.Y;
  Inc(PInteger(P));
  //Len:=oLen+AddrOffSet(op,P);
  Len:=oLen+LongInt(P)-LongInt(Op);
end;


end.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产自产v一区二区三区c| 在线欧美日韩国产| 91免费看片在线观看| 欧美电影影音先锋| 中文字幕佐山爱一区二区免费| 日韩精品成人一区二区三区| av爱爱亚洲一区| 久久亚洲精品小早川怜子| 亚洲国产精品久久不卡毛片| 成人免费毛片嘿嘿连载视频| 精品sm捆绑视频| 激情综合一区二区三区| 欧美三级日韩在线| 亚洲欧美日韩中文播放 | 韩国一区二区三区| 欧美在线不卡一区| 国产精品国模大尺度视频| 国精产品一区一区三区mba桃花| 欧美无乱码久久久免费午夜一区| 中文乱码免费一区二区| 国产另类ts人妖一区二区| 欧美肥妇free| 婷婷开心久久网| 在线观看国产日韩| 樱桃国产成人精品视频| 99精品视频在线免费观看| 国产欧美一区二区精品性色| 国产一区91精品张津瑜| 精品国产制服丝袜高跟| 麻豆91在线播放| 欧美大白屁股肥臀xxxxxx| 午夜久久久影院| 91精品在线观看入口| 午夜不卡在线视频| 欧美日本一区二区三区四区| 亚洲国产精品麻豆| 欧美日韩国产天堂| 日本欧美久久久久免费播放网| 欧美日韩久久一区二区| 日日夜夜免费精品视频| 日韩一区二区免费高清| 麻豆一区二区在线| 精品国产在天天线2019| 国产成人精品免费一区二区| 欧美国产激情一区二区三区蜜月 | 不卡一区中文字幕| 日韩久久一区二区| 欧美色图片你懂的| 日本91福利区| 久久久久久久久久久电影| 国产成人免费视频网站高清观看视频| 欧美激情一区二区三区蜜桃视频 | 久久99精品一区二区三区| 日韩欧美在线一区二区三区| 色婷婷亚洲一区二区三区| 亚洲欧美另类小说视频| 欧美日韩中文字幕一区| 久久国产精品99久久久久久老狼| 久久新电视剧免费观看| 不卡在线视频中文字幕| 亚洲国产成人va在线观看天堂| 日韩欧美一级在线播放| 韩国毛片一区二区三区| 亚洲欧洲日产国码二区| 欧美日韩一区二区三区不卡| 另类小说综合欧美亚洲| 中文字幕制服丝袜成人av| 欧美三片在线视频观看| 国产在线观看一区二区| 日韩一区日韩二区| 日韩精品最新网址| 91在线国产观看| 久久国产欧美日韩精品| 最好看的中文字幕久久| 日韩欧美综合在线| 欧美伊人久久久久久久久影院| 免费在线观看一区二区三区| 国产精品嫩草久久久久| 91精品欧美一区二区三区综合在 | 精品久久久久久综合日本欧美 | 91在线观看下载| 久久成人羞羞网站| 又紧又大又爽精品一区二区| 久久久精品国产免费观看同学| 色88888久久久久久影院野外| 狠狠色狠狠色综合系列| 亚洲一区二区精品3399| 中文字幕av一区二区三区高 | 亚洲第一主播视频| 国产精品久久久久毛片软件| 日韩欧美黄色影院| 91精彩视频在线| 波多野结衣在线一区| 六月丁香综合在线视频| 亚洲成人久久影院| 18成人在线观看| 日本一区二区三区久久久久久久久不 | 99精品视频在线播放观看| 精品一区二区综合| 视频一区欧美精品| 亚洲国产日韩一区二区| 亚洲视频一区在线观看| 欧美国产精品一区二区三区| 久久综合色8888| 欧美sm极限捆绑bd| 欧美xxxxxxxxx| 欧美精品v国产精品v日韩精品| 91久久国产综合久久| 91在线视频播放地址| 成人app软件下载大全免费| 国产精品一区二区91| 久久99国内精品| 九九精品一区二区| 激情深爱一区二区| 精品一区二区免费视频| 精品一区在线看| 国产精品一品视频| 福利91精品一区二区三区| 国产成人一区在线| 国产91富婆露脸刺激对白| 成人综合激情网| 成人黄页在线观看| 91理论电影在线观看| 日本久久一区二区| 91精品一区二区三区久久久久久| 91精品国产综合久久久久久久久久| 欧美日韩国产色站一区二区三区| 在线观看区一区二| 欧美精品1区2区| 久久综合久久综合亚洲| 国产精品丝袜在线| 自拍偷自拍亚洲精品播放| 亚洲精品国产高清久久伦理二区| 一区二区成人在线| 美女视频第一区二区三区免费观看网站| 免费成人av资源网| 国产精品一区二区91| 91视频在线观看免费| 欧美三区在线观看| 亚洲精品在线一区二区| 国产精品成人午夜| 亚洲成a人片综合在线| 久久国产精品色| 99精品欧美一区二区蜜桃免费| 欧美三级日韩三级| 26uuu精品一区二区三区四区在线| 国产精品网友自拍| 日韩精品1区2区3区| 国产成人av影院| 欧美在线观看一二区| 欧美成人国产一区二区| 综合欧美亚洲日本| 麻豆一区二区三| 99re8在线精品视频免费播放| 欧美精品99久久久**| 日本一区二区三级电影在线观看| 亚洲精品大片www| 精品一二三四在线| 欧美亚洲自拍偷拍| 久久综合成人精品亚洲另类欧美| 亚洲日本一区二区| 久久精品99久久久| 日本韩国精品在线| 久久精品男人的天堂| 国产精品亚洲一区二区三区妖精| av不卡在线播放| 久久影视一区二区| 亚洲一二三专区| 福利一区二区在线| 欧美一级高清片在线观看| 中文字幕一区二区在线观看| 蜜桃av噜噜一区| 欧美在线|欧美| 国产精品视频麻豆| 精品午夜一区二区三区在线观看| 欧美最猛性xxxxx直播| 亚洲国产经典视频| 韩国中文字幕2020精品| 欧美一区二区三区人| 亚洲黄色录像片| jizz一区二区| 国产片一区二区三区| 久久精品av麻豆的观看方式| 欧美日韩亚洲综合一区| 亚洲男人的天堂网| 99久久精品费精品国产一区二区| 久久久久久日产精品| 久久66热re国产| 欧美一区二区视频在线观看| 亚洲成a人v欧美综合天堂下载| 色诱亚洲精品久久久久久| 欧美国产乱子伦 | 亚洲女同一区二区| 不卡一二三区首页| 中文在线免费一区三区高中清不卡| 国模冰冰炮一区二区| 精品久久久久一区| 国产乱人伦偷精品视频免下载| 日韩三级av在线播放| 韩国精品免费视频|