Click here to Skip to main content
15,890,579 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: collection of different sections in app.config file Pin
Richard MacCutchan20-May-10 2:12
mveRichard MacCutchan20-May-10 2:12 
GeneralRe: collection of different sections in app.config file Pin
dashingsidds20-May-10 19:57
dashingsidds20-May-10 19:57 
QuestionDataSet.AddTable order dependence? Pin
Marc Clifton19-May-10 10:28
mvaMarc Clifton19-May-10 10:28 
AnswerRe: DataSet.AddTable order dependence? Pin
Not Active19-May-10 13:02
mentorNot Active19-May-10 13:02 
QuestionResize a monochrome bitmap without using any class Pin
Mehdi Ghiasi19-May-10 7:54
Mehdi Ghiasi19-May-10 7:54 
AnswerRe: Resize a monochrome bitmap without using any class Pin
Luc Pattyn19-May-10 14:55
sitebuilderLuc Pattyn19-May-10 14:55 
QuestionRe: Resize a monochrome bitmap without using any class Pin
Mehdi Ghiasi20-May-10 2:06
Mehdi Ghiasi20-May-10 2:06 
AnswerRe: Resize a monochrome bitmap without using any class Pin
Luc Pattyn20-May-10 2:19
sitebuilderLuc Pattyn20-May-10 2:19 
The result probably won't look very good under these conditions; here are two examples (data in binary):

1.
an image with a width of 8 pixels, one row containing
00101110

scaled up by a factor of 2, it becomes
0000110011111100
0000110011111100


So the result is a "pixelated" image, bits just got replicated, as there is no extra information available.

2.
the reverse operation: an image with a width of 16 pixels, two rows containing
0x0x1x0x1x1x1x0x
xxxxxxxxxxxxxxxx

(you can put a 0 or 1 at any of the 'x' positions) scaled down by a factor of 2 it could become
00101110


which again does not look anywhere near the same as the original as 75% of the information got thrown away.

And that was only the very simple case of a scale by 1/2 or 2/1.

As I said before, you will need a lot of bit manipulations, so make sure you are fluent in masking, shifting, and the like. For the resizing itself, you may choose a nearest-neighbor approach.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

QuestionRe: Resize a monochrome bitmap without using any class Pin
Mehdi Ghiasi20-May-10 7:18
Mehdi Ghiasi20-May-10 7:18 
AnswerRe: Resize a monochrome bitmap without using any class Pin
Thomas Krojer21-May-10 4:08
Thomas Krojer21-May-10 4:08 
JokeRe: Resize a monochrome bitmap without using any class Pin
T M Gray21-May-10 5:24
T M Gray21-May-10 5:24 
QuestionAccepting a rejected character in a Masked Textbox Pin
gmhanna18-May-10 1:58
gmhanna18-May-10 1:58 
AnswerRe: Accepting a rejected character in a Masked Textbox Pin
Peace ON18-May-10 2:42
Peace ON18-May-10 2:42 
QuestionAdvanced .NET cource Pin
marca29217-May-10 19:56
marca29217-May-10 19:56 
AnswerRe: Advanced .NET cource Pin
Richard MacCutchan17-May-10 21:26
mveRichard MacCutchan17-May-10 21:26 
GeneralRe: Advanced .NET cource Pin
marca29217-May-10 22:18
marca29217-May-10 22:18 
GeneralRe: Advanced .NET cource Pin
Richard MacCutchan18-May-10 10:59
mveRichard MacCutchan18-May-10 10:59 
AnswerRe: Advanced .NET cource Pin
Luc Pattyn18-May-10 1:19
sitebuilderLuc Pattyn18-May-10 1:19 
QuestionRender Method Pin
Mountainking0217-May-10 8:37
Mountainking0217-May-10 8:37 
AnswerRe: Render Method Pin
Luc Pattyn17-May-10 8:58
sitebuilderLuc Pattyn17-May-10 8:58 
QuestionRe: Render Method Pin
Mountainking0220-May-10 4:48
Mountainking0220-May-10 4:48 
AnswerRe: Render Method Pin
Luc Pattyn20-May-10 5:14
sitebuilderLuc Pattyn20-May-10 5:14 
QuestionRe: Render Method Pin
Mountainking0220-May-10 5:48
Mountainking0220-May-10 5:48 
AnswerRe: Render Method Pin
Luc Pattyn20-May-10 6:07
sitebuilderLuc Pattyn20-May-10 6:07 
QuestionAdvice: Transaction Processing using MSMQ Pin
DotNetJoe17-May-10 5:28
DotNetJoe17-May-10 5:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.