-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TImage32.PaintTo draws "fancy" background #247
Comments
Yes, that's a bug. Additionally, the I can see that there's some functionality missing in
Why? |
This is documented behavior (see: |
The PST_CLEAR_BUFFER paint-stage is now added by default and is marked run-time only. Refs #247
I confused Delphi IDE design-/run-time with application design-/run-time in my last commit so I have deleted the commit. I will need to extend the paint stage record so it's possible to differentiate between the three possible draw modes:
|
Setting TImage32.Bitmap DrawMode to dmOpaque hides Paint Stages before PST_DRAW_BITMAP and paints corretely the contenent of TImage32, maybe it's not the best solution but actually gives the expected image. I think the issue is due to the "recenly" internal styles designed for the background and should be disabled when entring in PaintToMode. graphics32/Source/GR32_Image.pas Line 732 in a1f0140
|
I see. IMO that is just a workaround. I would rather fix the problem so we don't need workarounds. |
…ad we now have a "mask set" that indicates what the paint stage should be used for: psmRunTime, psmDesignTime and psmExport. psmRunTime replaces the DsgnTime flag, psmDesignTime replaces the DsgnTime flag and the new psmExport flag indicates if the paint stage should be drawn by the PaintTo method. Only the PST_DRAW_BITMAP and PST_DRAW_LAYERS paint-stages have the psmExport mask flag set by default. Fixes #247 Fixes #248
graphics32/Source/GR32.ImageFormats.PSD.pas
Line 461 in 89b9c21
As I know transparency tiles are painted to mark presence of alpha channel, and reseved for purly internal use and shouldn't be painted in the external Bitmap32 :
I think it's important to disable
dmBlend
DrawMode inTImage32.Bitmap
before exportationOriginally posted by @lamdalili in #240 (comment)
The text was updated successfully, but these errors were encountered: