Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Other Delphi VCL

Gray-Image

  • Category : Delphi VCL
  • Tags :
  • Update : 2012-11-26
  • Size : 9kb
  • Downloaded :0次
  • Author :dia tr*******
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
procedure GrayScale(const Image:TImage) var BytesPerScan: Integer iWidth, iHeight: Integer pScanLine: pByteArray R,G,B: Byte begin try BytesPerScan := Abs(Integer(Image.Picture.Bitmap.ScanLine[1])- Integer(Image.Picture.Bitmap.ScanLine[0])) except raise exception.create(‘Error’) end for iHeight := 0 to Image.Picture.Bitmap.Height - 1 do begin pScanLine := Image.Picture.Bitmap.ScanLine[iHeight] iWidth := 0 while(iWidth <= BytesPerScan - 1) do begin R := pScanLine^[iWidth + 2] G := pScanLine^[iWidth + 1] B := pScanLine^[iWidth + 0] pScanLine^[iWidth + 2] := Byte(Round(0.299 * R + 0.587 * G + 0.114 * B)) pScanLine^[iWidth + 1] := Byte(Round(0.299 * R + 0.587 * G + 0.114 * B)) pScanLine^[iWidth + 0] := Byte(Round(0.299 * R + 0.587 * G + 0.114 * B)) iWidth := iWidth + 3 end end Image.Refresh end
Packet file list
(Preview for download)
ImageProcessor6\BrightnessUnit.dfm
...............\BrightnessUnit.pas
...............\ContrastUnit.dfm
...............\ContrastUnit.pas
...............\HistogramUnit.dfm
...............\HistogramUnit.pas
...............\ImageProcessor.dpr
...............\ImageProcessor.res
...............\ImageUnit.dfm
...............\ImageUnit.pas
...............\MainUnit.dfm
...............\MainUnit.pas
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.