Search:
Type: Posts; User: Brenker
Search:
Search took 0.04 seconds.
-
Re Posting #24
For an AlphaBlend() operation, the R,G & B bytes must be premultiplied first, both destination and source DIBs.
-
Upload one of your corrupted JPG files (a small one is preferred); I would like to see if I can spot the cause.
-
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...
-
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. ...
-
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...
-
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.
-
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...
-
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...
-
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...
-
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...
-
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...
-
@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...
-
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...
-
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...
-
"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...
-
As I see it, just use a Hex Editor.
-
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...
-
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...
-
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,...
-
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...
-
-
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...
-
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...
-
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...
-
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...
-
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.
-
@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...
-
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,...
-
80% v 90%, I feel better now.
-
@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...
-
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.
-
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...
-
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 ...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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"...
|
Click Here to Expand Forum to Full Width
|