Progress in lazimage lazarus / 8-Other ---------------------------------------------------------------------- wile64 · 2007-04-04 14:23 Hello, sorry for my English (google lives) I develop units graphics on the basis of lazimage (currently pcx, tga complete support, psd). I will want to make function the function progress which does not function either on lazimage or I cannot make it function! Thank !!! ---------------------------------------------------------------------- theo · 2007-04-04 14:41 I've done something similar. You can download the "beta" here: http://www.theo.ch/lazarus/opbitmap1_5.zip See: "lclintegrationdemo" but there is no "progress" either. Progress you can see in "lazformatsdemo" ---------------------------------------------------------------------- wile64 · 2007-04-06 09:44 I made some test, good project. There are images which its step open in accordance with the original to the level of the colors! How to help you A corrects the problems that me I is not ? ---------------------------------------------------------------------- theo · 2007-04-06 15:26 Sorry, I don't really understand ;-) Do you say that for some images the colors are wrong? Which images? (Format and Details) ---------------------------------------------------------------------- wile64 · 2007-04-06 19:44 Yes, Image to deform and erroneous colors in PCX 1bit and gray 8bit. TGA 15bits gray alpha erroneous colors. PSD Two-colour stream read error, cmyk 16bits wrong color, gray 16bits image wrong, lab 16bits wrong colors… ---------------------------------------------------------------------- theo · 2007-04-06 23:58 Quote from: "wile64"Yes, Image to deform and erroneous colors in PCX 1bit and gray 8bit. TGA 15bits gray alpha erroneous colors. PSD Two-colour stream read error, cmyk 16bits wrong color, gray 16bits image wrong, lab 16bits wrong colors… Yes it's possible. You have to know that I didn't actually write these codes. They're from GraphicEx http://www.soft- gems.net/index.php?option=com_content&task=view&id=13&Itemid=33 This code exists for years for Delphi. I've just ported it to Lazarus. So I'm not actually familiar with the format-specifications. Please help if you have any insight in the problems. My contribution is opbitmap.pas which makes it possible to easily port these codes to FPC/Lazarus. The "Mainstream" or "Web" Formats however are working better than the Lazarus "built-in" ones. JPEG can handle Progressive Encoding, BMP can handle RLE encoded images. And there's GIF support. But I didn't write any of these myself. I've just selected the most suitable Delphi freeware codes for porting to FPC/Lazarus. I don't even consider these formats PCX, TGA 15bits and 16bit PSD important enough today for wasting a lot of time on them. But I'll happily accept your contribution ;-) And: There's another very well documented but seemingly almost unknown Lazarus compatible Library which might solve your problems : http://imaginglib.sourceforge.net/ It's very good! (no GIF, PSD, PCD, PSP though atm) This guy was working for years on it, while I've invested only the spare time of two months in writing opbitmap and porting the codes. So Vampyre Imaging Library is more advanced and has more functions. But the purpose is different to opbitmap. Vampire is an Imaging Library, while opbitmap is a VCL compatibility Layer, supporting all Pixelformats (including System independent Color Reduction) and handling Scanline code. ---------------------------------------------------------------------- wile64 · 2007-05-11 09:11 Me units supports lazpcx : *.pcx;*.pcc;*.scr laztga : *.tga;*.vst;*.icb;*.vda;*.win lazpsd : *.psd;*.pdd lazpbm : *.pbm;*.ppm;*.pgm laziff : *.iff;*.lbm lazgif : *.gif lazhalo : *.cut lazmac : *.mac still not of progression ---------------------------------------------------------------------- wile64 · 2007-05-16 15:50 I made patch for corrected the problem of progression. Or can your found information on the format of storage of the images in TBitmap?  I suppose that it are to store in FHandle: HBITMAP