archive-com.com » COM » E » EFG2.COM

Total: 878

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • efg's Reference Library: Delphi Graphics File Formats:  BMP
    discussed at length in Manipulating Pixels With Delphi s ScanLine Property Peter Haas UseNet Post about using Bitmap Dormant after setting PixelFormat to fix a problem in D1 D4 with the TBitmapInfoHeader Ian Martin s UseNet Post about PhotoShop s problem with pf16bit bitmaps See also Monochrome Resource Files See Resource Files on Delphi Graphics Algorithms page SaveToClipboardFormat The example in the D3 online help compiled with a warning but the online help example of SaveToClipboardFormat has never been quite right and does not compile see efg s UseNet Post about this Here s a version of the online example that will compile in D3 D7 USES clipbrd I wish Borland showed what unit is needed in the help procedure TForm1 Button1Click Sender TObject var MyFormat Word Bitmap TBitMap AData THandle APalette hPalette Wrong in D3 D7 online example begin Bitmap TBitmap Create try Bitmap LoadFromFile c Program Files Common Files Borland Shared Images Splash 256color factory bmp Bitmap SaveToClipBoardFormat MyFormat AData APalette ClipBoard SetAsHandle MyFormat AData finally Bitmap Free end end SaveToFile Converting a BMP to a JPEG and Vice Versa TI 4582D Scanline D3 The PixelFormat defines the layout of a Scanline PixelFormat and Scanline are discussed at length in Manipulating Pixels With Delphi s ScanLine Property Scanline Enigma working with pf24bit Bitmaps fixed in D4 02 and D5 Finn Tolderlund s UseNet Post about Scanline and FreeImage See also Monochrome Transparent TransparentColor TransparentMode The Transparent property of a TBitmap works only if you use the Draw method to draw it on a canvas If Transparent TRUE and TransparentMode tmAuto then the transparent color is the color of the bottom leftmost pixel of the bitmap If TransparentMode tmFixed then the transparent color is defined by the TransparentColor property Dynamically drawing a transparent image FAQ 1794D Also see Transparency in Section B of Delphi Graphics Algorithms BMP and DIB File Formats File Format Description Comments Archives Bitmap Archives Raize Button Glyphs www raize com DevTools Tools RzBmps htm Glyphs und Icons im Internet http community borland com article 0 1410 25911 00 html Images in BMP format 16800 images 8 MB www eldos org files bitmaps zip 9452 glyphs from Richey s Delphi Box http inner smile com dl div htm glyph More than 400 glyphs from MS Office Applications ftp ftp scalabium com pub officebtns zip Raize Button Glyphs www raize com RzBmps htm 1000 glyphs for free www rwakelin freeserve co uk sharedfiles bmpiconz zip Links to various bitmap icon collections www torry net docs graphics htm BMP Bitmap and Metafile Functions Tomes Graphical pp 273 356 Windows Bitmap used with Microsoft Paint Delphi 3 or 4 Demos Imagview To create a RES file with Bitmaps Edit a file name RC and add a line like this for each bitmap NAME BITMAP NAME BMP all in upper case Replace NAME above with the appropriate bitmap name Once you have the name RC file use the resource compiler BRC32 name RC The file name RES will be created Add R name RES to the unit needing the resource Loading Bitmaps and Cursors from RES files TI 1081D Tried TI 1081D and you now see the message Bitmap Image is not valid Be sure to add the comment R name RES to the unit where you re using LoadResource Example of comparing two TBitmaps and counting number of pixels that match and differ efg s Resource Demo application shows how to use the following file types in resource files BMP ICO JPG GIF requires Anders Melander s TGIFImage EMF TXT AVI WAV and cursors Peter Haas UseNet Post about determining a bitmap s size without loading the complete TBitmap and Joe Hecht s Reply Post with certain precautions Bitmap Orientation and biHeight www webartz com fourcc fccbihgt htm biHeight and Video Formats in DirectShow problem with inverted video images http www microsoft com hwdev desinit biheight htm Scanline Tech Note explains accessing pixel data quickly for the various PixelFormats 24 bits pixel to 8 bits pixel bitmaps using the ReduceColors function See Anders Melander s UseNet Post about using TGIFImage to reduce colors RGB Formats www webartz com fourcc fccrgb htm Encryption Decryption efg s ImageCrypt Lab Report BMP Section efg s Aspect Ratio Lab Report Resource Grabber will scan the directories and drives on your computer and extract all Bitmaps Glyphs button images Icons Cursors JPG JPEG images WAVE and RMI sound files as well as AVI video clips it finds inside the programs and DLL files in any directory of your choice http inner smile com dl res htm Glyph Viewer facilitates the search in large Glyph directories In a list all bit maps of a directory as well as their file names and creation dates are displayed The list can be sorted according to file names and creation dates In a tree representation you can select the desired directory http www pics software de swglyph htm BMP Technical Tutorial www geocities com SiliconValley Haven 7041 tp showbmp txt Microsoft s Error 481 Invalid Picture Err Viewing BMP File Danny Thorpe s UseNet Post about RLE BMPs Rafe Aldridge s UseNet Post about Bug in D5 loading RLE BMPs Bob Villiers UseNet Post with VarArrayLoadFile which loads a bitmap into a variant efg s PelsPerMeter example with GetPelsPerMeter procedure to return biXPelsPerMeter and biYPelsPerMeter values and an example based on a UseNet Post by Peter Klein that returns these same values Biff Kadidlehopper s UseNet Post to get set the dpi in a bitmap file or bitmap image the biXPelsPerMeter and biYPelsPerMeter values The biXPelsPerMeter is a 4 byte integer at an offset of 38 bytes from the start of the file biYPelsPerMeter is a 4 byte integer at an offset of 42 bytes from the start of the file Example from Robert Poyntz with SpecialBMP routine to set the biXPelsPerMeter and biYPelsPerMeter values SpecialGIF procedure by Robert Poyntz with biXPelsPerMeter and biYPelsPerMeter example Supported by ImageLib www imagelib com DIB Windows Device Independent Bitmap Delphi Programming

    Original URL path: http://www.efg2.com/Lab/Library/Delphi/Graphics/BMP.htm (2016-02-14)
    Open archived version from archive



  • PatternColumns DIV 2 1 OF BYTE AA AA AA AA AE 00 00 B0 A0 E0 0B 00 A0 0E B0 00 A0 0B 00 00 A0 B0 E0 00 AB C0 0E 00 A0 00 00 E0 VAR Bitmap TBitmap i INTEGER j INTEGER Row pByteArray begin Bitmap TBitmap Create TRY Bitmap Width PatternColumns Bitmap Height PatternRows Bitmap PixelFormat pf4bit 4 bits pixel Fill the bitmap from the constant

    Original URL path: http://www.efg2.com/Lab/Library/Delphi/Graphics/DefineBrush.pas.TXT (2016-02-14)
    Open archived version from archive


  • Button to Bitmap From Bob Villiers Reply To bob villiers lineone net References NNTP Posting Host 80 225 118 43 X Trace newsgroups borland com 1030755714 80 225 118 43 30 Aug 2002 18 01 54 0700 Lines 26 Path newsgroups borland com not for mail Xref newsgroups borland com borland public delphi graphics 50969 procedure TForm1 Button1Click Sender TObject var bmp TBitmap begin bmp TBitmap Create try bmp Width

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/2002/0830.txt (2016-02-14)
    Open archived version from archive


  • public delphi graphics On Thu 04 Mar 1999 13 49 53 0900 Graham Stratford wrote I have a 256 color bitmap which has a black image on a white background I want to change the background to another color Is there any simple way to do this Assuming the source bitmap is called MyBitmap var Dest TBitmap R TRect begin Dest TBitmap Create with Dest do begin Width MyBitmap Width

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/1999/0304.txt (2016-02-14)
    Open archived version from archive


  • your problem sounds a little bit strange to me for I used BrushCopy with a TImage with no problem Maybe the dynamic assignation of your bitmap to a TImage isn t correct I guess you used the Assign method Are you sure about your Image brush color being assigned before the call of BrushCopy Here is the code I ve written in my app and which works with two bitmaps

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/1999/0315.txt (2016-02-14)
    Open archived version from archive


  • Xref dnews borland public delphi graphics 47067 You set it by invalidating or validating rectangles or regions TCanvas ClipRect is just a wrapper around the Win32 GetClipBox routine which just gets the rectangle that contains the invalidated region int GetClipBox HDC hdc LPRECT lprc Sue D Nom wrote in message news 3C8D6E5D 69A7C092 courthouse com There is an inconsistency in the TCanvas ClipRect documentation see below In it it suggests

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/2002/0312.txt (2016-02-14)
    Open archived version from archive


  • a variety of different video cards chipsets and therefore drivers CopyRect is nearly a direct call to the StretchBlt API call Both Draw and StretchDraw call Graphic Draw For a TBitmap TBitmap Draw results in a call to StretchBlt or TransparentStretchBlt So CopyRect and StretchDraw both use StretchBlt But there are several things that can happen before StretchBlt is called using StretchDraw One is a call to SetStretchBltMode ACanvas Handle

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/2000/1206a.txt (2016-02-14)
    Open archived version from archive


  • 100113 1101 compuXXserve com References NNTP Posting Host 172 178 205 106 X Trace dnews 1029435262 172 178 205 106 15 Aug 2002 11 14 22 0700 Lines 38 Path dnews not for mail Xref dnews borland public delphi vcl components using 102152 In article John Cox wrote Suppose I have a TPanel well actually it is a TGraphicControl descendent but a TPanel will work for this discussion on a form I would like to create a thread that draws on the canvas of the TPanel You can think of the project as an ocilloscope or spectrum analyzer The thread would be continually drawing on the canvas and the use of any Synchronize method would certainly bog down the main thread How can this be done Can I pass the Canvas property to the Thread constructor and use its methods to draw on it in the thread You can but only if you place the drawing code into a brace like Canvas Lock try drawing code finally Canvas Unlock end The thread should not lock the canvas permanently The least intrusive method would indeed be something like Peter MOrris suggestion have the thread first draw on an off screen TBitmap

    Original URL path: http://www.efg2.com/Lab/Library/UseNet/2002/0815.txt (2016-02-14)
    Open archived version from archive



  •