Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
This tag is for questions related to the loading, formatting, saving, compression, and display of data representing pictures.
31
votes
Converting JPG images to PNG
The variable names path1 and path2 are bad since they are not as descriptive as possible. They should rather be srcdir and dstdir (if you prefer abbreviations), or source_directory and destination_dir …
3
votes
FFT Convolution
A few detail remarks:
Complex[,] convolve = null;
This variable declaration should be moved further down, to the line where it is actually needed. Initializing it with null is misleading.
maxAmp = …
1
vote
Accepted
Painting a lot of diagrams for a board game
Instead of rendering the bitmap in memory, you could define a custom view that takes a Board and renders it.
I did this for an Android app for a variant of the Go board game, and it worked pretty wel …
0
votes
Determine if an image is opaque or transparent
= 255)
return false;
return true;
}
Unless you are doing massive amounts of image processing, this is the code I would go with. …
14
votes
Determine if an image is opaque or transparent
I don't know how good the C# compiler and runtime optimize this code out of the box, so here is what I would try:
Load bitmap.Width, bitmap.Height and bitmapData.Stride into local variables.
Swap th …
2
votes
Accepted
PPM File Modifier
I would have named them the exact opposite, hence you should look at other libraries or image editing programs how they name these operations.
Don't name function parameters temp. …