Left = 0
Top = 0
Caption = 'Form1'
- ClientHeight = 299
- ClientWidth = 635
+ ClientHeight = 418
+ ClientWidth = 690
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Style = []
OldCreateOrder = False
DesignSize = (
- 635
- 299)
+ 690
+ 418)
PixelsPerInch = 96
TextHeight = 13
object Image1: TImage
- Left = 32
- Top = 24
+ Left = 489
+ Top = 87
Width = 193
Height = 193
Picture.Data = {
Proportional = True
end
object Image2: TImage
- Left = 248
- Top = 24
- Width = 209
- Height = 193
+ Left = 0
+ Top = 0
+ Width = 449
+ Height = 417
Anchors = [akLeft, akTop, akRight, akBottom]
Proportional = True
end
object Button1: TButton
- Left = 504
+ Left = 559
Top = 32
Width = 75
Height = 25
Caption = 'Button1'
TabOrder = 0
OnClick = Button1Click
+ ExplicitLeft = 504
end
end
nx := Image1.Picture.Bitmap.Width;
ny := Image1.Picture.Bitmap.Height;
SetLength(f, nx, ny);
- getBinaryImage(Image1.Picture.Bitmap, f);
- kaisu := thinning4(nx, ny, f);
- color.rgbtBlue := 255;
- color.rgbtGreen := 255;
- color.rgbtRed := 255;
bmp := TBitmap.Create;
try
bmp.Assign(Image1.Picture.Bitmap);
+ getBinaryImage(bmp, f);
+ kaisu := thinning4(nx, ny, f);
+ color.rgbtBlue := 255;
+ color.rgbtGreen := 255;
+ color.rgbtRed := 255;
for j := 0 to ny - 1 do
begin
Pointer(g) := bmp.ScanLine[j];