Commit Graph

159 Commits

Author SHA1 Message Date
wp_xyz
52490b39fe LCL/TBitmap: TBitmap.LoadFromStream accepts RT_RCDATA bitmap resources. Issue #40529.
(cherry picked from commit 3b4b6dd3ed)
2023-10-04 12:42:32 +02:00
juha
d126fb4491 LCL: Fix BMP handling issues in big endian systems. Issue #27719, patch from Mark Morgan Lloyd.
git-svn-id: trunk@48623 -
2015-04-04 18:23:18 +00:00
maxim
f281e6830c LCL: fixed typos in comments ("extention" -> "extension"), patch by Reinier, bug #26154
git-svn-id: trunk@45029 -
2014-05-12 23:12:18 +00:00
paul
f6f27bf260 lcl: load TBitmap only from RT_BITMAP resources. Other bitmap types should be loaded from RT_RCDATA since RT_BITMAP stream is not valid
git-svn-id: trunk@42956 -
2013-09-27 02:42:52 +00:00
juha
ecd140c985 Improve license headers in sources, part 2. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41389 -
2013-05-25 09:22:25 +00:00
marc
8f9838a385 * Initialize writers when writing a TPicture graphic in a different format. Fixes issue #0013451
git-svn-id: trunk@20562 -
2009-06-09 22:58:19 +00:00
marc
8d3b74321e * Removed copy of stream when reading bitmaps from a resourcestream
git-svn-id: trunk@20499 -
2009-06-07 17:53:54 +00:00
marc
cf12e50a5a * Don't set the bfOffBits member of the dummy fileheader, when set pixeldata is expected there. Fixes issue #13906
git-svn-id: trunk@20412 -
2009-06-04 23:40:54 +00:00
paul
6af0fb9bc9 lcl: fix asterisk position in the copyright comment
git-svn-id: trunk@19477 -
2009-04-18 04:03:13 +00:00
paul
8519c89579 lcl:
- fix TCustomBitmap.MaskHandleNeeded. It used non-compatible description to create mask handle (#0011850)
  - fix TBitmap. Don't set FTransparentColor - it must be clDefault
examples:
  - fix compilation of icon example

git-svn-id: trunk@16268 -
2008-08-27 09:24:00 +00:00
paul
66a43dc768 lcl: fix loading bitmap from a windows resource (#0011520)
git-svn-id: trunk@16004 -
2008-08-08 15:23:23 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
marc
d43db7b7f3 * Splitup of TBitmap into TRasterImage, TCustomBitmap, TFPImageBitmap and TBitmap
* Implemented TIcon and reading .ico (including Vista icons)

git-svn-id: trunk@15472 -
2008-06-20 00:21:07 +00:00
marc
c81003eefa * Introduced TCustomBitmap as base class for all pixelbased imageclasses. Currently backward comatible (and equal to) TBitmap
* Added resource loading support to TPicture and Glyps to avoid image quality loss when converted to TBitmap
* Removed copy paste code for imagelist resource loading
* Moved some graphic classes to their own ini file

git-svn-id: trunk@14876 -
2008-04-17 23:43:11 +00:00
paul
11de6af8b9 decapitalize all procedure and function keywords to make all looks the same
git-svn-id: trunk@14375 -
2008-03-03 08:06:26 +00:00
marc
56d9683e1a * Fixed some valis resourcetypes
git-svn-id: trunk@13771 -
2008-01-15 23:45:39 +00:00
marc
39aa9c05e7 * Start of new Icon - bitmap cleanup
git-svn-id: trunk@13624 -
2008-01-05 00:30:10 +00:00
paul
ac89221fef add ability to read TBitmap from resource (windows resource or linux)
git-svn-id: trunk@13309 -
2007-12-13 05:50:56 +00:00
paul
0383724536 correct TBitmap ReleaseHandle, ReleaseMaskHandle and ReleasePalette
git-svn-id: trunk@13308 -
2007-12-13 02:29:23 +00:00
paul
5c61bf6aaa lcl: add TBitmap.ReleaseMaskHandle by analogy with TBitmap.ReleaseHandle
git-svn-id: trunk@13198 -
2007-12-07 07:14:22 +00:00
paul
dd774d76b7 dont share image data between different bitmap classes (this fixes issue when you load pixmap from .xpm, then assign it to portablenetworkgraphics class and after save to .png you'll get .xpm content inside .png file)
git-svn-id: trunk@12946 -
2007-11-21 03:20:48 +00:00
mattias
bbf3a6393a images: made vase transparent
git-svn-id: trunk@12724 -
2007-11-03 19:01:50 +00:00
marc
f597c76bad * Disabled automatic mask handle creation
git-svn-id: trunk@12723 -
2007-11-03 18:57:04 +00:00
marc
e2a52c1ccb * Implemented missing TBimap.Mask function
git-svn-id: trunk@12721 -
2007-11-03 17:30:24 +00:00
marc
ecf446c193 * Implemented TBitmap mask creation
git-svn-id: trunk@12719 -
2007-11-03 16:58:59 +00:00
marc
efe7d0f7c6 * Enabled bitmap.TransparentMode (fixes #10100)
git-svn-id: trunk@12706 -
2007-11-03 00:26:48 +00:00
mattias
f20081a879 IDE: improved and enabled creation of .lrt files and combining all .rst/.lrt files into one .po files per project. ToDo: do the same for packages. From Luis Rodrigues
git-svn-id: trunk@12344 -
2007-10-06 13:59:31 +00:00
marc
fd56b7393b * Changed default bitmaptype to DIBSection, so different depths can be supported (fixes default transparency on win32)
git-svn-id: trunk@11921 -
2007-09-02 22:51:27 +00:00
marc
6767396907 * fixed alpha images on 16 bpp
* fixed adding alpha to images

git-svn-id: trunk@11897 -
2007-09-01 02:46:24 +00:00
marc
04b4e27b62 * Implemented basic alpha support
* Implemented LCL side of imagelist
* restructured rawimage to more OO

Merged revisions 11289-11617 via svnmerge from 
http://svn.freepascal.org/svn/lazarus/branches/marc-lcl

........
  r11289 | marc | 2007-06-06 22:50:05 +0200 (Wed, 06 Jun 2007) | 1 line
  
  private branch for bitmap rework
........
  r11290 | marc | 2007-06-06 23:30:09 +0200 (Wed, 06 Jun 2007) | 2 lines
  
  * Initial linux and win32 implementation
........
  r11291 | paul | 2007-06-07 03:20:11 +0200 (Thu, 07 Jun 2007) | 3 lines
  
  - fix compilation with fpc 2.3.1
  - remove unneded code for converting cursor mask
  - enabled loading of standard windows status icons instead of LCL
........
  r11292 | paul | 2007-06-07 11:03:27 +0200 (Thu, 07 Jun 2007) | 1 line
  
  - some bugs with mask and alpha
........
  r11299 | marc | 2007-06-08 00:59:26 +0200 (Fri, 08 Jun 2007) | 2 lines
  
  * force alpha channel when PNG has alpha
........
  r11302 | paul | 2007-06-09 04:45:12 +0200 (Sat, 09 Jun 2007) | 1 line
  
  - fix black rectangles instead of manu item images
........
  r11303 | paul | 2007-06-09 04:46:14 +0200 (Sat, 09 Jun 2007) | 1 line
  
  formatting
........
  r11309 | marc | 2007-06-11 02:25:07 +0200 (Mon, 11 Jun 2007) | 3 lines
  
  * Added alpha premultiply
  * Published Colorbox selection property
........
  r11310 | paul | 2007-06-11 19:10:18 +0200 (Mon, 11 Jun 2007) | 1 line
  
  misc
........
  r11312 | marc | 2007-06-12 01:44:03 +0200 (Tue, 12 Jun 2007) | 2 lines
  
  * start with carbon
........
  r11313 | paul | 2007-06-12 14:02:48 +0200 (Tue, 12 Jun 2007) | 1 line
  
  - BitBtn glyph transparency
........
  r11315 | paul | 2007-06-13 05:20:40 +0200 (Wed, 13 Jun 2007) | 1 line
  
  - problems with internal bitmap saving/loading (is was 24bpp when 32bpp needed)
........
  r11319 | paul | 2007-06-14 06:32:04 +0200 (Thu, 14 Jun 2007) | 1 line
  
  - More LCL way of painting images through ThemeServices
........
  r11320 | paul | 2007-06-14 06:32:56 +0200 (Thu, 14 Jun 2007) | 1 line
  
  - ability to override bitbtn glyph to nothing
........
  r11321 | paul | 2007-06-14 06:34:49 +0200 (Thu, 14 Jun 2007) | 1 line
  
  painting headercontrol images through ThemeServices
........
  r11325 | paul | 2007-06-17 10:14:27 +0200 (Sun, 17 Jun 2007) | 1 line
  
  fixing painting of 32bpp bitmaps with no Alpha
........
  r11326 | paul | 2007-06-17 10:16:00 +0200 (Sun, 17 Jun 2007) | 1 line
  
  missed file
........
  r11337 | paul | 2007-06-20 03:44:47 +0200 (Wed, 20 Jun 2007) | 3 lines
  
  - revert previous commit
  - create 24bpp bitmaps by default
........
  r11342 | marc | 2007-06-21 01:47:30 +0200 (Thu, 21 Jun 2007) | 3 lines
  
  * Added Alpha support on Carbon
  * Simplified win32 rawimage_fromdevice
........
  r11343 | paul | 2007-06-21 04:36:28 +0200 (Thu, 21 Jun 2007) | 1 line
  
  - adopt gtk2 code
........
  r11344 | paul | 2007-06-21 04:41:41 +0200 (Thu, 21 Jun 2007) | 1 line
  
  make gtk2 work
........
  r11353 | paul | 2007-06-22 10:12:19 +0200 (Fri, 22 Jun 2007) | 1 line
  
  - default WS imagelist implementation
........
  r11358 | marc | 2007-06-23 13:29:06 +0200 (Sat, 23 Jun 2007) | 2 lines
  
  * Implemented MaskBlit
........
  r11359 | paul | 2007-06-23 20:02:52 +0200 (Sat, 23 Jun 2007) | 1 line
  
  draw new imagelist bitmap on widget canvas
........
  r11371 | marc | 2007-06-25 23:50:13 +0200 (Mon, 25 Jun 2007) | 2 lines
  
  * Rawimage rework
........
  r11372 | marc | 2007-06-25 23:51:00 +0200 (Mon, 25 Jun 2007) | 2 lines
  
  + Added header
........
  r11373 | marc | 2007-06-26 00:05:55 +0200 (Tue, 26 Jun 2007) | 2 lines
  
  * Swapped RGBA <-> ARGB defualt format since most widgetsets use ARGB
........
  r11374 | marc | 2007-06-26 00:09:36 +0200 (Tue, 26 Jun 2007) | 2 lines
  
  * added
........
  r11462 | marc | 2007-07-12 00:16:02 +0200 (Thu, 12 Jul 2007) | 2 lines
  
  + added header
........
  r11463 | marc | 2007-07-12 00:18:49 +0200 (Thu, 12 Jul 2007) | 2 lines
  
  * Added alpha/masked strechblt support
........
  r11464 | marc | 2007-07-12 00:21:27 +0200 (Thu, 12 Jul 2007) | 2 lines
  
  * create DIBSection instead of DIBitmap
........
  r11502 | marc | 2007-07-14 00:23:42 +0200 (Sat, 14 Jul 2007) | 2 lines
  
  * Fixed transparentcolor after loading bitmap
........
  r11505 | marc | 2007-07-14 15:10:56 +0200 (Sat, 14 Jul 2007) | 2 lines
  
  - Removed ARGB dataconversion, internal format is by default the same now
........
  r11531 | marc | 2007-07-17 01:23:34 +0200 (Tue, 17 Jul 2007) | 2 lines
  
  * changed TRawImage into object
........
  r11533 | paul | 2007-07-17 05:10:31 +0200 (Tue, 17 Jul 2007) | 3 lines
  
  - change several occurrence of FillChar(..TRawImageDescription..) with call to Init
  - change imagelist defines to use old imagelist (new is crashes ide)
  - change TWin32ThemeServices to use old imagelist
........
  r11534 | paul | 2007-07-17 05:19:02 +0200 (Tue, 17 Jul 2007) | 3 lines
  
  - change several occurrence of FillChar(..TRawImageDescription..) with call to Init in Qt widgetset
  - change TRawImageDescription.IsEqual and TRawImage.IsEqual
........
  r11535 | paul | 2007-07-17 05:23:53 +0200 (Tue, 17 Jul 2007) | 1 line
  
  - change several occurrence of FillChar(..TRawImageDescription..) with call to Init in wince widgetset
........
  r11554 | marc | 2007-07-18 00:10:11 +0200 (Wed, 18 Jul 2007) | 2 lines
  
  * fixed compilation on 2.0.4
........
  r11555 | marc | 2007-07-18 00:10:44 +0200 (Wed, 18 Jul 2007) | 2 lines
  
  * fixed compilation
........
  r11556 | marc | 2007-07-18 00:11:43 +0200 (Wed, 18 Jul 2007) | 2 lines
  
  * fixed fillchar on TRawImage object
........
  r11572 | marc | 2007-07-19 01:41:35 +0200 (Thu, 19 Jul 2007) | 2 lines
  
  * fixed crash when object has vmt
........
  r11573 | marc | 2007-07-19 01:42:14 +0200 (Thu, 19 Jul 2007) | 2 lines
  
  * Made TRawimage compatible with record again
........
  r11580 | marc | 2007-07-20 01:33:20 +0200 (Fri, 20 Jul 2007) | 2 lines
  
  * enabled newimagelist
........
  r11581 | marc | 2007-07-20 01:33:48 +0200 (Fri, 20 Jul 2007) | 2 lines
  
  * fixed font
........

git-svn-id: trunk@11861 -
2007-08-25 01:49:40 +00:00
paul
666cd0c4a7 - TBitmap.LoadFromLazarusResource has been switched to TLazarusResourceStream
git-svn-id: trunk@11430 -
2007-07-06 02:55:30 +00:00
vincents
296e81dda3 LCL: raise exception if bitmap is not completely written to disk (bug #8260)
git-svn-id: trunk@11392 -
2007-06-27 11:01:23 +00:00
mattias
8d7812da86 IDE: completion form is now created on demand and the internal double buffer bitmap is resized correct
git-svn-id: trunk@11130 -
2007-05-12 09:39:20 +00:00
tombo
d357912661 TBitmap.WriteStreamWithFPImage - write stream size Little Endian - fixes streaming bitmaps on BE platforms
git-svn-id: trunk@11007 -
2007-04-26 11:52:59 +00:00
mattias
54f2ddb7fd LCL: TBitmap: freeing savestream on setting handle, added faster TBitmap.SetHandles
git-svn-id: trunk@10735 -
2007-03-10 21:52:44 +00:00
vincents
68e2a02221 added support for reading cursor files from Paul Ishenin (bug #8082)
git-svn-id: trunk@10394 -
2007-01-08 12:55:21 +00:00
mattias
4aaef35274 examples: added an example for ScanLine replacement
git-svn-id: trunk@10275 -
2006-12-01 21:23:32 +00:00
mattias
63b0a6e0d6 TBitmap: fixed using destinatin CopyMode from Giuliano Colla
git-svn-id: trunk@9786 -
2006-09-02 19:00:00 +00:00
mattias
535bec1a8d gtk intf: fixed auto realigning of bitmap masks
git-svn-id: trunk@9732 -
2006-08-18 21:10:29 +00:00
mattias
ed55bb0c94 fixed TBitmap.Draw
git-svn-id: trunk@9645 -
2006-07-20 20:14:45 +00:00
mattias
69a6edd9a9 gtk intf: fixed realign masks, LCL TBitmap: added CHangingAll to avoid overhead when changing the whole bitmap
git-svn-id: trunk@9642 -
2006-07-20 19:20:43 +00:00
mattias
e2ba095290 fixed default value of TImage.Transparent
git-svn-id: trunk@9606 -
2006-07-14 14:48:31 +00:00
mattias
ad7d0253b0 fixed resizing TBitmap
git-svn-id: trunk@9561 -
2006-07-04 21:38:40 +00:00
micha
fa6f15ad9a preserve content when resizing bitmap (issue #1245)
git-svn-id: trunk@9545 -
2006-07-03 12:58:28 +00:00
mattias
bfb3fd9685 added class keyword to proc bodies for fpc 2.1.1
git-svn-id: trunk@9364 -
2006-05-27 17:40:59 +00:00
mattias
6eb4930179 fixed references to COPYING.LCL
git-svn-id: trunk@9243 -
2006-05-05 05:52:08 +00:00
mattias
dbe9841c13 implemented setting TBitmap.TransparentColor
git-svn-id: trunk@9067 -
2006-04-02 21:54:33 +00:00
mattias
a01d0a9fe7 new icons from JerneyL, added TLazComponentQueue for streaming components in lazarus binary format
git-svn-id: trunk@8826 -
2006-02-26 00:25:00 +00:00
mattias
e8a5d48fbd added TLazReaderBMP to cacheable image readers, added smallint, shortint reader/writer functions, accelerated LRS writer by writing big chunks in one call
git-svn-id: trunk@8825 -
2006-02-25 22:48:47 +00:00
mattias
2940e62358 fixed delphi transparent trick for palette .bmp
git-svn-id: trunk@8446 -
2006-01-04 21:06:56 +00:00