15,902,114 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by RobbKirk (Top 17 by date)
RobbKirk
4-Aug-15 4:41am
View
I think your capture device driver doesn't support that format.
My version is: until you don't have native driver for the particular camera, you would have that problem, because VFW by default works with YUY (YUY2) format.
Therefore, the better choice is to manage GET_FORMAT and accept it as the best format for the camera without native driver.
And transform data from comming back grab image into your format.
So you need YUV (YUY) conversion to BMP.
The bad example (according to author opinion) is here: http://www.experts-exchange.com/Hardware/Peripherals/Q_24622577.html
RobbKirk
12-Jul-11 12:20pm
View
I don't care. me about 15+ in IT and never met such blah-blah forum like this one.
I do believe that guys are helpfull, but they talk too much, instead of giving a helping hand.
Finally, I found the solution, and it is NOT trivial... and I really needed GDI expert, as I am not the one.
To cut the crap, if someone need the solution, just poke me up to skype: robbkirk
RobbKirk
11-Jul-11 3:24am
View
krakovyak, to you too.
RobbKirk
10-Jul-11 20:34pm
View
invertion works, AND, OR as well.
the XOR duznt. and it is BUG, just know that... at least .net 3.5 duznt do it well with pre-saved DC or Bitmap.
I've solved it with unmanaged c++ code...
RobbKirk
10-Jul-11 20:30pm
View
CRAP is exactly what you wrote here. you spent a lot of time for it,
Congratulations.
RobbKirk
10-Jul-11 0:31am
View
sorry that I'm not kissed ya ass.
RobbKirk
10-Jul-11 0:22am
View
regarding WM_PAINT and CopyFrom.. I spent 3-4 days changing everything upside down... without success. the code you see here is copy/pasted from "battle-ring" project, trust me I do have reflector and I know what is CopyFromScreen.. please, skip ya concerns regarding these two things.
as I wrote XOR of pre-saved bitmap and screen duznt work. (xorCycleA), while in xorCycleB it works with currently grabbed bitmap arrays.
I'm not rude, I just don't want to spend time for unnecessary comments, as a GDI .NET expert (in my case) would see exactly what this code about without my comments.
And those fat remarks about my rudeness and such are missing target arrows.
RobbKirk
9-Jul-11 16:57pm
View
You have two options: Yes/No
or just skip my question... no one is obliged to dig out of my stupid, idiotic and moron-made crap code...
RobbKirk
9-Jul-11 16:53pm
View
SelectObject needs to be used when want to draw smth.
When Blitting context from one to another no need to Select... because it's just bitmap context.. like a paper for writing, and it is the already saved Bitmap.
Select is used when you use Graphics - methods to draw, that will be applied to "paper" (context).
But in my case XORing duznt work when bitmap is taken from previous capturing.
RobbKirk
9-Jul-11 16:26pm
View
Deleted
what would you expect to see in c:\after_xorA.bmp after xorCycleA()?
1) black image if no changes on screen
2) the only changed area if screen has been changed
right?
now try the code, and take a look the result.
I'm new in this forum, so, be noticed, I spent 15+ yrs programming.
I'm here, because hope to find the answer...
The mental things regarding "how should, and how would" I skip in that case.
I haven't abuse anyone here, just need the help, that's it...
I'm friendly enough, trust me...
RobbKirk
9-Jul-11 15:49pm
View
I know it works from the screen.. I know.
You said "bitmap object is not properly copied into the bitmap device context" - that's the reason I need someone tells me why, and what should be done to make it correct.
As you can see the xorCycleB takes screenshot, places any Text on it and then XORing with the same screen, and the result is black screen and the text, means the static image data is XORed away.
Same with the Bitmat doesn't work.
It works Ok in my C++ program, and I just need to inject that code inside C# client app.
RobbKirk
9-Jul-11 15:23pm
View
>What I would think if that even though the bitmap bmA contains the image, hdcBitmap is black without initializing its content from the screen.
see the constructor
>Well probably 10 years have elasped since last time I have used BitBlt.
Thus is was not so simple as copying the code... As it was a console application, we had to add reference to make it work (then allows unsafe code) and then understand the subtilities...
writing here should be even harder for you, please, don't do it. it's not mandatory... relax.
thnx anyways.
RobbKirk
9-Jul-11 15:14pm
View
"It looks trivial"? Man, I have the same code working in C++ program.
You think I don't know what is BitBlt?
The question is - why BitBlt with XOR doesn't work in XorCycleA if the screen is not changing and bmA contains the screen data.
Means XOR should return black image.
And it's returning black in xorCycleB.
RobbKirk
9-Jul-11 15:06pm
View
Deleted
CRAP is exactly what you wrote here. you spent a lot of time for it,
Congratulations.
RobbKirk
9-Jul-11 13:36pm
View
You'd see in xorCycleB() there's "new Bitmap()" code.
As we could see the bitmap is created from screen DC, and stored in global class data, so next call it's not ==null and I expect it IS compatible - I tried many different approaches, then came to decision to split it into two calls (CycleA and CycleB), and see what's the difference.
Then completely stuck with that...that is why I'm here looking for expert in GDI and .NET combination.
RobbKirk
9-Jul-11 13:33pm
View
I disagree, for those, who know what is GDI's BitBlt, there is no problem to understand my desire.
It's very easy and readable code.
RobbKirk
9-Jul-11 11:44am
View
Richard, I don't want to explain to everyone. I need only assistance of GDI expert. Trust me, for those who know BitBlt there is no problem to understand what is this code about.
Show More