Jump to content

Search the Community

Showing results for tags 'graphics32'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Delphi Questions and Answers
    • Algorithms, Data Structures and Class Design
    • VCL
    • FMX
    • RTL and Delphi Object Pascal
    • Databases
    • Network, Cloud and Web
    • Windows API
    • Cross-platform
    • Delphi IDE and APIs
    • General Help
    • Delphi Third-Party
  • C++Builder Questions and Answers
    • General Help
  • General Discussions
    • Embarcadero Lounge
    • Tips / Blogs / Tutorials / Videos
    • Job Opportunities / Coder for Hire
    • I made this
  • Software Development
    • Project Planning and -Management
    • Software Testing and Quality Assurance
  • Community
    • Community Management

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Delphi-Version

Found 2 results

  1. Hi all, I'm attempting to hue shift a pre-loaded font graphic at a certain point on the screen where it appears as scroller text. I'm pretty sure I've entered everything correctly, but all I'm getting is completely blank text instead of hue-shifted text: procedure TGameMenuScreen.PrepareNextReelText; const HUE_SHIFT = 0.250; var i, realI: Integer; S: String; SizeRect: TRect; ScrollerText: TBitmap32; HueShift: TColorDiff; x, y: Integer; begin FillChar(HueShift, SizeOf(TColorDiff), 0); HueShift.HShift := HUE_SHIFT; ScrollerText := TBitmap32.Create; for i := 1 to fScrollerTextList.Count do begin if i = fScrollerTextList.Count then begin fDisableScroller := true; Exit; end; if fReelForceDirection < 0 then begin realI := (fReelTextIndex - i); if realI < 0 then realI := realI + fScrollerTextList.Count; end else realI := (fReelTextIndex + i) mod fScrollerTextList.Count; if Trim(fScrollerTextList[realI]) <> '' then begin S := Trim(fScrollerTextList[realI]); fReelTextIndex := realI; Break; end; end; try SizeRect := MenuFont.GetTextSize(S); ScrollerText.SetSize(SizeRect.Width, SizeRect.Height + 4); ScrollerText.Clear(0); MenuFont.DrawText(ScrollerText, S, 0, 4); for y := 0 to ScrollerText.Height-1 do for x := 0 to ScrollerText.Width-1 do begin ScrollerText[x, y] := ApplyColorShift(ScrollerText[x, y], HueShift); end; ScrollerText.DrawMode := dmBlend; finally ScrollerText.Free; end; if (fReelForceDirection < 0) then fReelTextPos := -ScrollerText.Width else fReelTextPos := LayoutInfo.ScrollerWidth; fLastReelUpdateTickCount := GetTickCount64; fSwitchedTextSinceForce := true; end; Any ideas what I'm either a) doing wrong or b) not doing at all? Thanks in advance!
  2. @Anders Melander I recently saw this post from you, as a maintainer of the wonderful Graphics32 libary. https://en.delphipraxis.net/topic/4140-smooth-scaling-of-bitmaps/?do=findComment&comment=36266 So I hope that you and/or others might have more insights about the future of the Graphics32 project. I used it in the past very successfully, and would also nowadays bet on it, but the activity of this project is quite slow. Why is that, I cannot really understand ? I have seen attempts from ZhaoyiPeng, to bring Gr32 to FMX, but also this moves quite slow, or is stalled. I see effords from Angus Johnson, to push a new Image32 project. Is the Image32 based partly on Graphics32 technologie ( I'm afraid its not), or how does it fit all together ? I had no time to look into all that more deeply, but the Gr32 for FMX seems to be only a proof of concept, and many features still missing. My original though was that Gr32 is able to use different backends, so it might be possible to port this to FMX too. Since FMX makes use of GPU, I'm not really sure if Gr32 can beat this, but I think Gr32, on the other hand, has features that were not available in FMX right now, and still would make sense. Anyhow, beside FMX, for VCL this seems to be still the great choice for bitmap operations. So what is the status and the roadmap of this project ? Would be good to know. Is this lack of maintainers or lack of interested users ?
×