Quantcast
Channel: Dan Byström's Bwain » .NET
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

The åäö Ghost Strikes… AGAIN!

Just when I thought we were out of the dark ages… something hit me right out of the blue. During the summer something strange has happened, which I suspect happened because of some Microsoft security...

View Article


Image may be NSFW.
Clik here to view.

VB.NET as a DSL

The other day I got a glimpse of something that could turn out to be really useful. Or maybe a Pandora’s Box. I really don’t know until I investigated it more. I was asked to add some simple string...

View Article


Image may be NSFW.
Clik here to view.

Soft edged images in GDI+

Last week I felt a sudden urge to create bitmaps with rounded corners and soft edges. Partly because I thought it would look nice, but mostly just as an intellectual exercise. (And also, according to...

View Article

Image may be NSFW.
Clik here to view.

Improving performance…

…of the fitness function in the EvoLisa project. In case you managed to miss it, EvoLisa is an already world famous project created by Roger Alsing earlier this week. Continued from this post. With...

View Article

Image may be NSFW.
Clik here to view.

Optimizing away

Follow-up on Improving performance…  and Genetic Programming: Evolution of Mona Lisa. I just tested that I can optimize this loop: unchecked { unsafe { fixed ( Pixel* psourcePixels = sourcePixels ) {...

View Article


Image may be NSFW.
Clik here to view.

Optimizing away II

Continued from Optimizing away. Ok, now I have worked up the courage. Prepare yourself for a major disappointment. I really do not know how to tweak that C#-loop to run a nanosecond faster. But I can...

View Article

Image may be NSFW.
Clik here to view.

Optimizing away II.2

I was asked to upload the source and binary for my last post.

View Article

Image may be NSFW.
Clik here to view.

Optimizing away II.3

Oh, the pain, the pain and the embarrassment… I just came to realize that although a “long” in C# is 64 bits, in C++ it is still 32 bits. In order to get a 64 bit value in MSVC++ you must type either...

View Article


Image may be NSFW.
Clik here to view.

Image.GetThumbnailImage and beyond

Once I tried to use Image.GetThumbnailImage because I wanted to fire up small thumbnails as fast as possible. So I tried: // totally and completely, utterly useless private Bitmap getThumbnailImage(...

View Article


Image may be NSFW.
Clik here to view.

Thumbnails with glass table reflection in GDI+

I’ve been playing around with image processing lately and since my last post about loading thumbnail images from files I couldn’t help myself from trying to roll my own “Web 2.0 reflection effect”...

View Article
Browsing latest articles
Browse All 10 View Live