Search:

Type: Posts; User: Brenker

Page 1 of 10 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: how use Alpha Blend and Transparency with AlphaBlend ()?

    Re Posting #24


    For an AlphaBlend() operation, the R,G & B bytes must be premultiplied first, both destination and source DIBs.
  2. Replies
    4
    Views
    881

    Re: Need help finding corrupy image files

    Upload one of your corrupted JPG files (a small one is preferred); I would like to see if I can spot the cause.
  3. Re: UpdateLayeredWindow and elliptic region (Jagged edges)

    For reference only.

    Like I always said, I don't use PictureBox to store the file image, because (1) the image may be 32-BPP with alpha values in the 4th bytes and (2) if I use DIB instead, the...
  4. Re: Use GDI+ to get Photo Orientation and/or Rotate

    You already have all declarations etc which pertain to your own code in Posting #1. To obtain the "mIndex" value, wqweto supplied a function and the constant for PropertyTagOrientation tag etc. ...
  5. Re: Use GDI+ to get Photo Orientation and/or Rotate

    As I see it, you only need to do 2 things:

    (1) Separately establish the value of "mIndex" first, e.g. by using the function duly supplied by wqweto above, or some other subroutine you already...
  6. Re: Use GDI+ to get Photo Orientation and/or Rotate

    Additional info for reference:

    GDIplus has PropertyTagOrientation tag which has 8 settings from 1 to 8, corresponding to indices from 1 to 8 in my above posting.
  7. Re: Use GDI+ to get Photo Orientation and/or Rotate

    I don't know how do you establish the photo's orientation reference "index". Some people resort to ExifTool, for example. I always read through the file by myself, as reading the Image File...
  8. Replies
    15
    Views
    1,896

    Re: [RESOLVED] Capture and Save Animated GIF

    I successfully ran a test (with a 600x600 32-BPP animated PNG); I would like to give a thumb up of the code.

    -- Because a query had been raised about the term "threshold", I searched for it in...
  9. Replies
    31
    Views
    2,683

    Re: GdipSaveAddImage (GIF animation)

    If I see that we can arrive at a consensus on all the following points, I might be willing to point a way out for you to try.

    Point 1: We should recognise the shortcoming of GDIplus to handle...
  10. Replies
    31
    Views
    2,683

    Re: GdipSaveAddImage (GIF animation)

    In the illustration below, the frames on the left side are the captured ones on screen. The frames on the right side are what should be the actually saved ones in an Animated GIF/ PNG file, which...
  11. Replies
    8
    Views
    957

    Re: COPY image in clipbord and label value

    The following are just for reference, may or may not be directly relevant to you:

    -- PrnScreen will invariably result in strange alpha values in the alpha bytes of the image which are not from the...
  12. Replies
    16
    Views
    1,852

    Re: VB6 QUESTION: icon to bitmap

    @fafalone:

    Thank you for letting me know of this one, a perfect one. This is the 1st time I see it.

    The one I referred must be an earlier one, because to my impression there were many more...
  13. Replies
    16
    Views
    1,852

    Re: VB6 QUESTION: icon to bitmap

    I am not talking of PNG files, I am talking about the ICOs (including PNG items) in EXE/DLL as a library. In such EXE/DLL files there is not a mask for any PNG item.

    Because I don't use the APIs...
  14. Replies
    16
    Views
    1,852

    Re: VB6 QUESTION: icon to bitmap

    Just to clarify, a PNG item doesn't have a mask. Starting from the file-stated .dwImageOffset, it is a PNG file in its entirety, including the PNG file signature, and the PNG image bytes are...
  15. Replies
    16
    Views
    1,852

    Re: VB6 QUESTION: icon to bitmap

    "Windows\System32\Shell32.dll" is a resouces library file of Windows; if you happen to be using Win 10 Home Edition, to test what we are talking about are the same thing, would you please show what...
  16. Re: VB6 Program Compiling Errors - Who would like to try?

    As I see it, just use a Hex Editor.
  17. Replies
    31
    Views
    3,135

    Re: Error Trapping in an Executable

    I also had a "quietly exits without a word" encounter last year, similar to what mms_ is now experiencing.

    I have an "Animated PNG" form and an "Animated GIF Editor" form which are invoked from a...
  18. Replies
    31
    Views
    3,135

    Re: Error Trapping in an Executable

    It is in a user control. Because I allow various toolbox tools for user to select the area to be removed and filled with synthesized pixels, viz Rectangular Region, Oval Region, Polygon Region and...
  19. Re: [RESOLVED] How to clear Err, when there is no way to know where it occurs

    From a posting in a new thread, https://www.vbforums.com/showthread.php?896828-Error-Trapping-in-an-Executable I found the answer to my question. There


    Although I am not practising the above,...
  20. Replies
    31
    Views
    3,135

    Re: Error Trapping in an Executable

    Here I have my Lesson 101.

    Even if I don't practise it as a rule, at lease I could have deployed it to help diagnose the nasty problem I had just a little while ago. Just a little while I ago I...
  21. Replies
    24
    Views
    2,145

    Re: [RESOLVED] Last Class to Go

    @baka:

    Thank you.
  22. Replies
    24
    Views
    2,145

    Re: [RESOLVED] Last Class to Go

    I don't actually use GDIplus for animated GIF, nor animated PNG. I use my own code (plus zLIB for compression/decompression in the case of PNG or animated PNG). GDIplus is incapable of doing certain...
  23. Replies
    24
    Views
    2,145

    Re: [RESOLVED] Last Class to Go

    GDIplus is indispensable to me, as I refrain from using a 3rd party DLL except for zLIB. I don't use GDIplus to load/save graphic files except for TIFF, but I need it for things like letting the...
  24. Replies
    10
    Views
    1,292

    Re: [RESOLVED] SavePicture, JPEG, quality?

    For info, the screenshot below, of a Save As JPG screen, explains a few salient points about saving a JPG:

    -- If the original is JPG, chances are there are EXIF and/or ICC information in the...
  25. Replies
    7
    Views
    931

    Re: Control Transparancy

    32-BPP image blend in with 32-BPP image, that is typical the job of AlphaBlend API. However, some old-fashioned guys are very much against that "premultiplied" idea, and insist on using their own...
  26. Re: [RESOLVED] How to clear Err, when there is no way to know where it occurs

    Did I ask you to help specifically? If not, and if you don't even bother to understand the issue, why waiting your time, and mine too. I consider your postings here are just creating nuisance.
  27. Re: [RESOLVED] How to clear Err, when there is no way to know where it occurs

    @wqweto: As a hobbyist I don't have a suitable tool at my disposal like you professionals do. Arnoutdv has a point, but in my retirement time I try to get some intellectual satisfaction, hence I...
  28. Re: [RESOLVED] How to clear Err, when there is no way to know where it occurs

    For over 15 years I never have to unchek "Remove array bounds checks" first, even when I am coding the extremely complicated stuff such as writing a function to form the interlaced PNG bytes for 1,...
  29. Re: [RESOLVED] How to clear Err, when there is no way to know where it occurs

    80% v 90%, I feel better now.
  30. Re: [RESOLVED] How to clear Err, when there is no way to know where it occurs

    @dilettante, you're right; the captioned question is not answered, yet. I caught the error spot myself, the hard way.

    I'd never been so abashed before. IDE is perfect, but EXE crashes (if...
  31. Re: How to clear Err, when there is no way to know where it occurs

    Today is my lucky day; I finally caught the culprit function causing the unforgiving EXE crash. I am glad that I can have the "Remove array bounds checks" ticked again.
  32. Re: How to clear Err, when there is no way to know where it occurs

    Just a note. In Posting #1 I said:



    This problem no longer exists, after adding a DoEvents everytime RaiseEvent to monitor the progress, from Viewport (user control) to Form so that Form can...
  33. Re: How to clear Err, when there is no way to know where it occurs

    Thank you, wqweto.

    Overall my system environment is less complicated. I only play with graphics (e.g. no database), only use intrinsic controls and I don't have any 3rd party DLL except zLIB ...
  34. Re: How to clear Err, when there is no way to know where it occurs

    Incidentally for such a big job, only a handful of Copymemory and a few APIs are used. The entire process is among byte arrays, but with very complicated arrangements, hence it can be forgiven if...
  35. [RESOLVED] How to clear Err, when there is no way to know where it occurs

    Recently I have a very nasty encounter: I added a "Context-Aware Fill" function to my program; the program runs fine in IDE, but gets crashed on EXE (all error trap attemps just don't work), if user...
  36. Replies
    25
    Views
    3,847

    Re: Animation png load image

    The screenshot below illustrates the actual practice of "Alpha Blend" and "Render". In real life, by a great majority the individual frame images in an Animated PNG are not the processed ones, and...
  37. Replies
    25
    Views
    3,847

    Re: Animation png load image

    I often use GDIplus to do the rendering. Below is an extract of the code lines, simplified a bit for clarity.

    Note 1: Here the destination is a flat surface, although 32-BPP, all apha bytes are...
  38. Replies
    25
    Views
    3,847

    Re: Animation png load image

    A few more pieces:

    -- Before rendering a frame after the first frame, one has to restore the destination image to its original first, thus



    (Store away the destination image first, say of...
  39. Replies
    25
    Views
    3,847

    Re: Animation png load image

    I just append some pieces of information for your reference.

    -- I seldom see PNG files have a "pHYs" chunk (for pixel aspect ratio), but the subject file uses one. So I have to check it out. I...
  40. Re: With GDIplus, how to extract original frame images per file (not processed ones)?

    No solution seems forthcoming?

    BTW, I've meanwhile found out why my GIF.cls failed to decompress the frame image bytes of the subject file. It seems the compressed bytes in file are "dislocated"...
Results 1 to 40 of 380
Page 1 of 10 1 2 3 4



Click Here to Expand Forum to Full Width