onepiecefreak
ImageSharp Alpha overwrite
I want to fill an ellipse on a destination image with ImageSharp. My filling color has 25% transparency and all alpha and pixel blending modes don't seem to support just overwriting the alpha value in the destination image. It always blends them in some way (like multiplication, add, etc)
Is there possibly a built-in extensions or similar that allows this overwrite. It seems so basic, and the only option I currently see is writing my own pixel processor.
2 replies
ADPCM knowledge required
Does anyone here know their way around ADPCM encoders? I could need someone with knowledge in that area, as I need to implement an ADPCM encoder, but I have literally no idea how to create the limited set of coefficients.
The format is a 3-sample-history ADPCM, where each frame has 32 samples. Per frame you select one of max 32 coefficient-triplets, apply them to the 3-sample-history to get a predicted value and then add your current sample to it.
I have no idea how to calculate those coefficients in the ncoding step.
1 replies
Asp.Net: Errors when changing server certificate
I want to create a gRPC server in my local network and have to run it via SSL. For various reasons, I cannot use a self-signed certificate, so I created my own root CA and imported it to my PCs root trust store. I then created a new certificate from that root CA. In a really bare bones ASP.NET application (even without gRPC) changing the server certificate to my created certificate will not establish a secure connection when called from any browser via HTTPS.
The debug logged error message reads as follows:
I have no further idea where to intercept to maybe get a better look at this issue or what exactly is supposedly wrong with the certificate. I also should clarify, that I had to create a pfx file from my initially created pem certificate, as with pem certificates, Windows seems to have issues if the key is stored separately from the certificate file. Since those certificates are tailored to my current environment, I can only really give you this description and my bare bones project as reproduction. I want to access the server directly via IP, and it does work without setting my own certificate.
1 replies
Multi-Project templates without a root folder
I have a multi-project template and I want those multiple projects to not be created in a root folder inside the solution, but instead as separate folders on the same layer.
Currently, the behaviour of my template would be this:
But I'd like to have:
I found some solutions online that, however, require some form of code extension to visual studio, to basically post process the template or something? But this is currently not feasable.
1 replies