|
Статистика |
Онлайн всего: 1 Гостей: 1 Пользователей: 0 Сегодня были: |
Самые активные пользователи | |
|
|
Зеркальное отражение BMP
procedure flip_horizontal(Quelle, Ziel: TBitMap); begin Ziel.Assign(nil); Ziel.Width := Quelle.Width; Ziel.Height := Quelle.Height; StretchBlt(Ziel.Canvas.Handle, 0, 0, Ziel.Width, Ziel.Height, Quelle.Canvas.Handle, 0, Quelle.Height, Quelle.Width, Quelle.Height, srccopy); end; procedure flip_vertikal(Quelle, Ziel: TBitMap); begin Ziel.Assign(nil); Ziel.Width := Quelle.Width; Ziel.Height := Quelle.Height; StretchBlt(Ziel.Canvas.Handle, 0, 0, Ziel.Width, Ziel.Height, Quelle.Canvas.Handle, Quelle.Width, 0, Quelle.Width, Quelle.Height, srccopy); end; procedure TForm1.Button1Click(Sender: TObject); var temp: TBitMap; begin temp := TBitMap.Create; try temp.Assign(Image1.Picture.BitMap); flip_vertikal(Temp, Image1.Picture.Bitmap); finally Temp.Free; end; end; Оформил: DeeCo Автор: http://www.swissdelphicenter.ch
|
Категория: Исходники | Добавил: Ivin (23.03.2008)
|
Просмотров: 2414
| Рейтинг: 0.0/0 |
|
|
|