Arsip: Mencerahkan Image
more 13 years ago
supermuam
para master delphi saya nemu script ini di about.com
tapi ada yg eror tolong kasih petunjuknya, terimakasih
procedure TForm1.ScrollBar1Change(Sender: TObject);
var
p0: byte array; // lokasi eror saya bingung maksudnya
r,g,b,x,y,Amount: Integer;
bw:tbitmap;
begin
bw:=TBitmap.Create;
bw.LoadFromFile('c:\1.bmp');
Amount:=ScrollBar1.Position2;
for y:=0 to image1.Height-1 do begin
p0:=bw.ScanLine[y];
for x:=0 to image1.Width-1 do
begin
r:=p0[x 3];
g:=p0[x3+1];
b:=p0[x 3+2];
p0[x3]:=IntToByte(r+((255-r) Amount)div 255);
p0[x3+1]:=IntToByte(g+((255-g) Amount)div 255);
p0[x3+2]:=IntToByte(b+((255-b) Amount)div 255);
end;
end;
Image1.Picture.Bitmap:=bw;
end;
more ...
- Pages:
- 1
reply |
Report Obsolete
Last Articles
Last Topic
- PascalTalk #6: (Podcast) Kuliah IT di luar negeri, susah gak sih?
by LuriDarmawan in Tutorial & Community Project more 3 years ago - PascalTalk #5: UX: Research, Design and Engineer
by LuriDarmawan in Tutorial & Community Project more 3 years ago - PascalTalk #4: Obrolan Ringan Seputar IT
by LuriDarmawan in Tutorial & Community Project more 3 years ago - PascalTalk #2: Membuat Sendiri SMART HOME
by LuriDarmawan in Tutorial & Community Project more 3 years ago - PascalTalk #3: RADically Fast and Easy Mobile Apps Development with Delphi
by LuriDarmawan in Tutorial & Community Project more 3 years ago - PascalTalk #1: Pemanfaatan Artificial Intelligence di Masa Covid-19
by LuriDarmawan in Tutorial & Community Project more 3 years ago - Tempat Latihan Posting
by LuriDarmawan in OOT more 4 years ago - Archive
- Looping lagi...
by idhiel in Hal umum tentang Pascal Indonesia more 11 years ago - [ask] koneksi ke ODBC user Dsn saat runtime dengan ado
by halimanh in FireBird more 11 years ago - Validasi menggunakan data tanggal
by mas_kofa in Hal umum tentang Pascal Indonesia more 11 years ago
Random Topic
- Komponent to SQL Server
by dania in Kritik & Saran more 15 years ago - Himpunan dan himpunan bagian
by telkom_1 in Tip n Trik Pemrograman more 16 years ago - Delphi di Win Vista
by IdrisZZ in Hal umum tentang Pascal Indonesia more 16 years ago - SendKeys
by clark in Tip n Trik Pemrograman more 17 years ago - membuat simulasi library menggunakan DLL
by mssetyawati in Hal umum tentang Pascal Indonesia more 17 years ago - Help - Problem kirim sms dengan Comport
by batozai in Network, Files, I/O & System more 13 years ago - thread di delphi....
by yadi in Hal umum tentang Pascal Indonesia more 16 years ago - Klik di Dbgrid ?
by budi_bunga in Tip n Trik Pemrograman more 17 years ago - mautahu tentang delphi
by fijarteguh in Tutorial & Community Project more 16 years ago - Print dbgrid langsung tanpa memakai Qreport, Rave dll
by mrzie05 in Reporting more 14 years ago