int WidthSource, HeightSource; // исходные размеры int WidthDest, HeightDest; // конечные размеры Graphics::TBitmap *sour = new Graphics::TBitmap(); Graphics::TBitmap *dest = new Graphics::TBitmap(); sour->LoadFromFile("pict.bmp"); WidthSource = sour->Width; HeightSource = sour->Height; WidthDest = Image1->Width; HeightDest = Image1->Height; dest->Width = WidthDest; dest->Height = HeightDest; float kX = (float)WidthDest / (float)WidthSource; float kY = (float)HeightDest / (float)HeightSource; for (int x = 0; x WidthSource; x++) for (int y = 0; y HeightSource; y++) { for (int i = 0; i kX; i++) for (int j = 0; j kY; j++) { dest->Canvas->Pixels[x*kX+i][y*kY+j] = sour->Canvas->Pixels[x][y]; } } Image1->Canvas->Draw(0,0, dest);
int i=pbih->biSizeImage; /////while(i--) /////цикл обработки пикселей *tbuf+++=10; /////
char* stopbuf=tbuf+pbih->biSizeImage;while(tbuf!=stopbuf) *tbuf+++=10;/////цикл обработки пикселей
Unit1.cpp.111: char* stopbuf=tbuf+pbih->biSizeImage;00402091 03D0 add edx,eaxUnit1.cpp.112: while(tbuf!=stopbuf) /////цикл обработки пикселей00402093 3BD0 cmp edx,eax00402095 7408 jz $0040209fUnit1.cpp.113: *tbuf+++=10; /////00402097 80000A add byte ptr [eax],$0a0040209A 40 inc eaxUnit1.cpp.112: while(tbuf!=stopbuf) /////цикл обработки пикселей0040209B 3BD0 cmp edx,eax0040209D 75F8 jnz $00402097
Unit1.cpp.54: for(y=0; y00401E68 33F6 xor esi,esi00401E6A 3B75C8 cmp esi,[ebp-$38]00401E6D 7D2F jnl $00401e9eUnit1.cpp.55: { ptr=(Byte*)Bmp1->ScanLine[y];00401E6F 8B4508 mov eax,[ebp+$08]00401E72 8BD6 mov edx,esi00401E74 8B8080030000 mov eax,[eax+$00000380]00401E7A E809220000 call $00404088Unit1.cpp.56: for(x=0; x00401E7F 33D2 xor edx,edx00401E81 3BDA cmp ebx,edx00401E83 7E13 jle $00401e98Unit1.cpp.57: { ptr[x++]+=10; //B00401E85 80000A add byte ptr [eax],$0a00401E88 40 inc eax00401E89 42 inc edxUnit1.cpp.58: ptr[x++]+=10; //G00401E8A 42 inc edx00401E8B 80000A add byte ptr [eax],$0a00401E8E 40 inc eaxUnit1.cpp.59: ptr[x++]+=10; //R00401E8F 42 inc edx00401E90 80000A add byte ptr [eax],$0a00401E93 40 inc eax00401E94 3BDA cmp ebx,edx00401E96 7FED jnle $00401e8500401E98 46 inc esi00401E99 3B75C8 cmp esi,[ebp-$38]00401E9C 7CD1 jl $00401e6f
while(tbuf!=stopbuf){ *tbuf+++=10; *tbuf+++=10; *tbuf+++=10;}