About: GDI Plus   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

This assumes a 32 bit pixel depth. To access the pixels, first lock the bitmap and obtain a TBitmapData. The TBitmapData structure contains information about the bitmap and a pointer to the first scanline. To use the scanline like the TBitmap call the scanline function for the row required. See the example below.

AttributesValues
rdfs:label
  • GDI Plus
rdfs:comment
  • This assumes a 32 bit pixel depth. To access the pixels, first lock the bitmap and obtain a TBitmapData. The TBitmapData structure contains information about the bitmap and a pointer to the first scanline. To use the scanline like the TBitmap call the scanline function for the row required. See the example below.
dcterms:subject
abstract
  • This assumes a 32 bit pixel depth. To access the pixels, first lock the bitmap and obtain a TBitmapData. The TBitmapData structure contains information about the bitmap and a pointer to the first scanline. To use the scanline like the TBitmap call the scanline function for the row required. See the example below. function lockBitmap(Bitmap : TGPBitmap) : TBitmapData; var r : TGPRect; begin r.x := 0; r.y := 0; r.width := bitmap.getWidth; r.height := bitmap.getHeight; Bitmap.LockBits(r, ImageLockModeRead or ImageLockModeWrite, Bitmap.GetPixelFormat, result); end; function Scanline(BitmapData : TBitmapData; Row : integer) : PRGBQuad; begin result := bitmapData.Scan0; inc(PByte(result), Row * bitmapData.stride); end; procedure doStuff(Bitmap :TGPBitmap); Var Row, Col : integer; theRow : PRGBQuad; pixel : TRGBQuad; BitmapData : TBitmapData; begin BitmapData := lockBitmap(Bitmap); for Row := 0 to bitmapData.Height - 1 do begin theRow := Scanline(BitmapData, Row); for Col := 0 to Bitmap.getWidth - 1 do begin pixel := theRow^; ..do stuff.. inc(theRow); end; end; Bitmap.UnLockBits(bitmapData); end;
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software