dcsimg

Search:

Type: Posts; User: Brenker

Page 1 of 7 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: VB6 Borderless Forms with PNG- and full Alpha-Support

    In my previous posting, I should have uploaded a ZIP, instead of the file itself, for the resulting animated GIF file.
  2. Re: VB6 Borderless Forms with PNG- and full Alpha-Support

    The immediate previous posting reminds me of a project of mine, done about 15 years ago, as a supplement to my full-fledged Animated GIF Editor. This supplement is to generate, from a flat image, an...
  3. Replies
    17
    Views
    2,482

    Re: [RESOLVED] Ideas for Speed-Up

    Elroy,

    In order to provide a feedback of the code that you'd worked out, I've done a quick test. Well done.

    I didn't use the supplied data, because I wanted to visually compare the result...
  4. Re: Best way to Smooth/Contour an image (or whatever it's called

    Some of the attempts involving Blur approach in fact seem to have produced quite okay impressions, except that they don't reflect the "outline" concept of Contour. "Sharpen by unsharp" of those...
  5. Re: [RESOLVED] How to set alpha/opacity to brush on calling GdipCreateTexture of GDIp

    wqweto,

    Great, you've caught my carelessness - when I called GdipCreateBitmapFromScan0(), I passed the size of the base image (591x422), instead of that of the brush image (22x22).

    I am now...
  6. Re: [RESOLVED] How to set alpha/opacity to brush on calling GdipCreateTexture of GDIp

    Per attached ready-to-run test project below, "TextureBrush.ZIP", I've variated the code a bit: using "arrMatrix As Single" instead of "arrMatrix As ColorMatrix":



    ...
  7. Re: How to set alpha/opacity to brush on calling GdipCreateTexture of GDIplus?

    LaVolpe,

    Re your posting #6



    As an experiment, I've tried the following:
  8. Re: How to set alpha/opacity to brush on calling GdipCreateTexture of GDIplus?

    What I am driving at is actually Path. Fortunately we only need to do a single call of GdipCreateTexture, something like this:



    Call GdipCreatePath(FillModeWinding, hPath)

    For i = 0...
  9. Re: How to set alpha/opacity to brush on calling GdipCreateTexture of GDIplus?

    The ""2-BrushSource_QuasiAlpha.png" uploaded in Posting #1 is in fact a 32-BPP equivalent. Although it is coded 4-BPP, the image is exactly the same as otherwise coded 32-BPP. Screenshot below...
  10. Re: How to set alpha/opacity to brush on calling GdipCreateTexture of GDIplus?

    passel,

    Our postings crossed. Yes, as I said under "Edited":



    If it is not possible to have the alpha/opacity set in code, I've to deviate a bit then.

    Brenker
  11. [RESOLVED] How to set alpha/opacity to brush on calling GdipCreateTexture of GDIplus?

    Screenshot below shows a brush created by calling GdipCreateTexture() of GDIplus. Unlike in calling GdipCreateHatchBrush() where we can easily incorporate an alpha value, I don't know how to set...
  12. Replies
    1
    Views
    251

    Re: How to create Hatch Brush using GDIplus

    I've now found out what is missing: In the code line

    Call GdipCreateHatchBrush(inHatchStyle, inForeColor, inBackColor, hBrush)

    "inForeColor" should read "ColorValue(inForeColor, inAlpha) and...
  13. Replies
    1
    Views
    251

    How to create Hatch Brush using GDIplus

    In the attached ready-to-run test project, I've failed to create a GDIplus' HatchBrush. The subroutine "Sub HatchBrushGDIplus", which is in xxGDIplus.bas, basically has the following:



    ...
  14. Re: [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on S

    @wqweto,

    I guess I have to handle your project independently, not just embodying a class and/or module into my own project. Otherwise there would be conflicts.



    As my posting #28 had...
  15. Re: [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on S

    I have solved my problem satisfactorily now.

    I used to default zLIB compression level to 9. With a monster-sized pic like the subject Minion, it should be adjusted to say 6, 7 or 8 when Filter...
  16. Re: [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on S

    @wqweto,

    I got an error msg as shown below. Unlike last time, this time I could see a highlighted code line after acknowledging the said msg.


    Brenker
  17. Re: [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on S

    @Schmidt,

    I myself don't mind what is PNG IDAT split size set at all; it is like targetting TIFF's StripByteCounts (tag 279), different people have different choices and all have valid reasons of...
  18. Re: [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on S

    @wqweto,

    For good order sake, I wish to claify that in arriving at the reported time(s) earlier, I used QueryPerformanceCounter and QueryPerformanceFrequency.


    Brenker
  19. Re: [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on S

    @wqweto,

    Thank you, I'll look at that, and will revert.


    Brenker
  20. Re: [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on S

    @Schmidt,

    For your reference, I also tested the time by FreeImage: 6.3 s.

    Because FreeImage is using PNGlib, so I've done a Chunk Tag Listing of the saved PNG, which is appended below. The...
  21. Re: [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on S

    @Schmidt,

    You have no idea what the last posting of yours has eventuated. (i) It corrects my mistake of blaming on VB speed in processing PNG Filter for a monster-sized PNG pic; and (ii) It...
  22. Re: [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on S

    @wqweto,

    I've run some testings today, using a 32x32x32 PNG and filling all of its filter bytes with a value of 1 on Save As PNG. I have no luck. The resulting images are just a black.

    I...
  23. Re: [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on S

    @wqweto,



    Public Sub EncodePngLine(ByVal lPixelsPtr As Long, ByVal lStrideBytes As Long, _
    ByVal lWidth As Long, ByVal lHeight As Long, ByVal lY As Long, ByVal lN As Long, _
    ...
  24. Re: [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on S

    @wqweto,

    I am grateful for the code that you put together out of your squeezed time.

    I will try it accordingly tonight. A quick glance shows that the first thing is, I have to figure out how...
  25. Re: [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on S

    @wqweto,

    You're right, precompiled ASM could be a solution to my problem on "Defilter" and "Pre-compression filtering", each of them takes up the bulk of the processing time, on Load and on Save...
  26. Re: By any chance the latest GDIplus allows the setting of PNG Filter on Save?

    I've tried, but there is nothing concerning PNG Filter in GDIplus. I guess MS didn't expect there would be a 28 MB PNG, for just a Minion, hence has so far not provided a PNG Filter option in...
  27. Re: By any chance the latest GDIplus allows the setting of PNG Filter on Save?

    @wqweto,

    I am reluctant to alter my PNG.cls other than just creating an instance of a new class there. Since my zLIB.dll is only 105 KB in size, I prefer to just continue using it -- my current...
  28. Re: By any chance the latest GDIplus allows the setting of PNG Filter on Save?

    @wqweto,

    I've run a test of using your cZipArchive.cls, basically on three functions, viz



    Public Function CalcCrc32Array(baData() As Byte) As Long
    Public Function Deflate(baBuffer() As...
  29. Re: By any chance the latest GDIplus allows the setting of PNG Filter on Save?

    @baka,

    I'd not try that path; direct2d/wic, because my PNGsupp is tailor-made to cover lots of stuff unavailed by others, hard to be replaced. PNGsupp is intended to cater to power PNG users;...
  30. Re: By any chance the latest GDIplus allows the setting of PNG Filter on Save?

    @wqweto,

    I've fetched a copy of your cZipArchive.cls; will look at it and will revert in a day or two. Thanks.


    Brenker
  31. Re: By any chance the latest GDIplus allows the setting of PNG Filter on Save?

    @Schmidt,

    Thanks for the info.

    Brenker
  32. Re: By any chance the latest GDIplus allows the setting of PNG Filter on Save?

    @Schmidt,

    Thanks.

    18,646 KB is surely a good figure; it seems to have stemmed from the so-called "simple heuristic" approach.

    Does libPng16-xx set the IDAT split size like libPng? I don't...
  33. Re: By any chance the latest GDIplus allows the setting of PNG Filter on Save?

    @Schmidt,

    As it is for "Save As PNG", it must be PNG the saved file.

    If at all possible, e.g. a user so prefers, one might go the PNGquant way. It not only quantizes, but also intelligently...
  34. Re: By any chance the latest GDIplus allows the setting of PNG Filter on Save?

    @LaVolpe,


    The trouble is only with monster size pics, e.g. with the subject Minion, we have 88,000,000 individual bytes to process and that is where the bulk of the time of "Save As PNG" is...
  35. Re: By any chance the latest GDIplus allows the setting of PNG Filter on Save?

    Seems not the stuff targeted.

    EncoderCompression relates to setting the compression itself, not pre-compression filter, e.g. on saving TIFF, one may set EncoderValueCompressionCCITT4 or...
  36. [RESOLVED] By any chance the latest GDIplus allows the setting of PNG Filter on Save?

    For a large, non-grayscale, 32/24 BPP PNG, the setting of Filter bytes, be it of Filter Type 1, 2, 3 or 4, can really reduce the size of the saved PNG. For example, with a setting of Filter Type...
  37. Re: Why Windows Explorer can display a PNG file with a different PNG signature?

    The subject file was downloaded this morning from a site offering Mnion PNG files; how would I have expected anything else other than PNG when the default extension is PNG! It is clear to me now,...
  38. [RESOLVED] Why Windows Explorer can display a PNG file with a different PNG signature?

    I downloaded a 32-BPP PNG 640x1016, with a PNG signature of "52 49 46 46 34 74 04 00" (different to that of PNG spec). Why Windows Explorer, or even the Paint, can still display its image alright?
    ...
  39. Replies
    9
    Views
    704

    Re: Way to hide MDI forms until all loaded?

    MDI load is so fast that often I have to let the splash stay a little bit longer after MDI has already appeared (on top of MDI of course).

    In your case, would you like to try adding a "DoEvents"...
  40. Replies
    19
    Views
    985

    Re: GDI Halftone vs. Image.Stretch = True

    wqweto,

    Thanks.

    To simplify matters, I approach the issue by applying a cut-off in the GDIplus subroutine - if the image size is 7x7 or below, just use StretchBlt, because e.g. for a 8x8 one,...
Results 1 to 40 of 262
Page 1 of 7 1 2 3 4



Featured


Click Here to Expand Forum to Full Width