Menu

#79 Add TDC::GradientFill and TDC::AlphaBlend

8
pending
API (116)
1
2022-12-29
2014-11-28
No

The Win32 bitmap functions GradientFill and AlphaBlend were introduced in Windows 98 (msimg32.lib), and thus there is no TDC counterpart in OWL. But now that these functions are available on all supported platforms (XP and later), they should be supported in TDC as well.

Note that the related function TDC::TransparentBlt was added in [r1306]. See [feature-requests:#50]. This ticket would complete the set of Win32 Bitmap Functions, as discussed in post "TResId + TransparentBlt in v6.30.11" in the Open Discussion forum.

GradientFill and AlphaBlend were implemented on the trunk in [r5024], with accompanying convenience functions GradientTriangleFill and GradientRectFill.

Related

Commit: [r1306]
Commit: [r5024]
Discussion: 9aef1fee
Discussion: Call for developers
Feature Requests: #156
Feature Requests: #50
Wiki: OWLNext_Roadmap_and_Prereleases

Discussion

  • Chris Kohlert

    Chris Kohlert - 2020-05-20
    • assigned_to: Chris Kohlert
     
  • Ognyan Chernokozhev

    Minor issue in [r5024] that the implementations of SetPixelV and AlphaBlent were missing the inline specification, and building of the OCFNext and other libraries was failing with linker errors. Fixed in [r5027].

     

    Related

    Commit: [r5024]
    Commit: [r5027]

  • Vidar Hasfjord

    Vidar Hasfjord - 2020-05-29
    • Group: unspecified --> 7
     
  • Ognyan Chernokozhev

    I tried the new GradientTriangleFill and GradientRectFill methods, as in the provided Doxygen examples, but both fail to compile with an error "Element type must be TRIVERTEX"

    I added a TDC example to the Classes project - feel free to modify it and add to it.

     

    Last edit: Ognyan Chernokozhev 2020-05-29
  • Vidar Hasfjord

    Vidar Hasfjord - 2020-05-29

    Hi Jogy, great of you to add an example for testing. Good catch on the documentation bug. It is an example of slicing, and the code error catches it. The array must be of type TRIVERTEX, not a derived type, for it to be passed to the Windows API.

    I have updated the documentation and the example [r5041].

    Edit: Simplification of the example, using initializer lists, in [r5042].

     

    Related

    Commit: [r5041]
    Commit: [r5042]


    Last edit: Vidar Hasfjord 2020-05-29
  • Vidar Hasfjord

    Vidar Hasfjord - 2020-06-04
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,5 @@
     The Win32 bitmap functions GradientFill and AlphaBlend were introduced in Windows 98 (msimg32.lib), and thus there is no TDC counterpart in OWL. But now that these functions are available on all supported platforms (XP and later), they should be supported in TDC as well.
    
     Note that the related function TDC::TransparentBlt was added in [r1306]. See [feature-requests:#50]. This ticket would complete the set of Win32 [Bitmap Functions](http://msdn.microsoft.com/en-gb/library/windows/desktop/dd183385.aspx), as discussed in post "[TResId + TransparentBlt in v6.30.11](discussion:9aef1fee)" in the Open Discussion forum.
    +
    +GradientFill and AlphaBlend were implemented on the trunk in [r5024], with accompanying convenience function GradientTriangleFill and GradientRectFill.
    
     

    Related

    Commit: [r1306]
    Commit: [r5024]
    Discussion: 9aef1fee
    Feature Requests: #50

  • Vidar Hasfjord

    Vidar Hasfjord - 2021-02-21
    • status: open --> pending
     
  • Vidar Hasfjord

    Vidar Hasfjord - 2021-02-21
    • Group: 7 --> 7.1
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB