|
Hey u can use Aforge.Net which gives u all options to work on a picture.Give reference to dlls related to Aforge. You can get info on Aforge in this site only. In a project called "Image Processing Library" u will get it.
Check it , i am sure that it will help u.
Cheers
Gtag.
|
|
|
|
|
SDK said that the color keys are specified in the raw pixel format. But I don't know how to set this value for YUY2 16bits. For YUY2 16bits, the byte ordering is: Y0, (U0 + U1)/2, Y1, (V0 + V1)/2, ...... If I want to use the pixel 0 as the color key, how to set the dwColorSpaceLowValue of struct DDCOLORKEY?
I try many times, but it can't work. Who can help me? Thanks.
|
|
|
|
|
The byte ordering should be Y0, U0, Y1, V0, Y2, U1, Y3, V1...
|
|
|
|
|
Hi all,
I want to calculate the homography assuming i have 4 points in the original image and 4 points in the resulted image.
x' = xH where x' is the points in the resulted image, H is the homography and x is points in the original image. Please help! Thanks!
|
|
|
|
|
this.webBrowser1.Document.Body.InnerHtml +=@"<br/>"
concatenates <BR> to this.webBrowser1.Document.Body.InnerHtml
I am pretty confused what is happening is it a bug or what?
|
|
|
|
|
Hi, Do You know how can the click mouse event be managed ?
In particular I'd like to know if it's possible receive, when I keep pressed the left mouse button, a sequential serie of mouse click events.
I'm interested into this fact because I'd like to implement scrolling in a custom control letting the possibility to scroll keeping pressed the left button with no necessity to click continuosly the mouse button.
Thanks.
Stefano.
|
|
|
|
|
Hello folks,
i'm searching for a class or any sample code to organize a graph (map or network).
I try to explain better, i just want to display a graph in a fine way, clear and well spaced.
Thanks in advance
Program your life ^^
modified on Wednesday, January 7, 2009 3:39 PM
|
|
|
|
|
Lookup "simulated annealing" - it's a good algorithm for laying out all kinds of data, from map labels to graphs.
Cheers,
Drew.
|
|
|
|
|
|
There 2 32bpp bitmaps with some images:
bitmap1
bitmap2
and graphics object g1 created from bitmap1
I set individualy alpha values in bitmap2 using LockBits:
Gdiplus::BitmapData bitmapData;
Gdiplus::Status s = pBitmap->LockBits(&Gdiplus::Rect(0, 0, pBitmap->GetWidth(), pBitmap->GetHeight()),
Gdiplus::ImageLockModeWrite | Gdiplus::ImageLockModeRead,
PixelFormat32bppRGB, &bitmapData);
if (s == Gdiplus::Ok) {
unsigned int* pPixels = (unsigned int *)bitmapData.Scan0;
for (unsigned int i = 0; i < bitmapData.Height; i++) {
for (unsigned int j = 0; j < bitmapData.Width; j++) {
if (mask(i, j) > 0)
pPixels[j] &= 0xFFFFFFFF;
else
pPixels[j] = 0x00FFFFFF;
}
pPixels += bitmapData.Stride / 4;
}
pBitmap->UnlockBits(&bitmapData);
}
And then draw it on bitmap1 using g1. But the alpha blending does not happen?
chesnokov
|
|
|
|
|
Chesnokov Yuriy wrote: Gdiplus::Status s = pBitmap->LockBits(&Gdiplus::Rect(0, 0, pBitmap->GetWidth(), pBitmap->GetHeight()),
Gdiplus::ImageLockModeWrite | Gdiplus::ImageLockModeRead,
PixelFormat32bppRGB, &bitmapData);
Shouldn't that be Format32bppArgb ?
The pBitmap bitmap must be Format32bppArgb as well.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
you're the MVP.
Muchos gracias!
I do not believe how can I omited that ARG in this call? They were all ARGB created and cloned, but that single LockBits somehow avoided ARGB. Ohhh
Чесноков
|
|
|
|
|
Hi! I'm using Visual C++ 2005 Express Edition and I am trying to create an application that uses DirectSound. I found on DirectSound Documentation how to initiate it, but I still have some problems. When I initiate last member of DSBUFFERDESC (the struct that describes the characteristics of a new buffer), i get this error:
1>main.obj : error LNK2019: unresolved external symbol _GUID_NULL
referenced in function "void __cdecl InitDirectSound(struct HWND__ *)" (?InitDirectSound@@YAXPAUHWND__@@@Z)
Here is the code, where "GUID_NULL" (which is defined in dsound.h) appears:
DSBUFFERDESC pcDSPrimaryBufferDesc,
pcDSPrimaryBufferDesc.guid3DAlgorithm=GUID_NULL;
On my project Propetries>>Configuration Propetries>>Linker>>Input>>ADDITIONAL DEPENDENCIES I added dsound.lib, but on DirectX Documentation it says that some DirectSound functions use Dsound3d.dll as import library. Where should I add it? what did I missed?
Thank you in advance!
|
|
|
|
|
Member 3796009 wrote: On my project Propetries>>Configuration Propetries>>Linker>>Input>>ADDITIONAL DEPENDENCIES I added dsound.lib
Try adding Dxguid.lib as well.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I want to write a filter Driver for usb camera, but i don't how to do. anyone can help me? my email : forever_28@yahoo.cn
|
|
|
|
|
I want to build a space ship that flies me to Ganymed, but I don't know how to do. Anyone can help me? my email: forever_dumb@yahoo.cn
|
|
|
|
|
Hi!
I have some question about vista DWM and related feature.
My project wanna a feature that all output of screen be stored in an offscreen buffer, then a program modify the buffer, for example, twist the screen image or make output brighter or darker, at last the modified result be sent to the real user screen.
It is just something like flip3d in vista.
Do you think it is possible to achieve by using some windows API?
Please give me some suggestion
Thank you!!
|
|
|
|
|
I am using directx9 and Visual c++ for my project. I am trying to display a mesh loading from *.x file. The mesh object has texturing object. When I am trying to render the meash there is a background containing one texture from the mesh file. The problem is when I use color blending. If I desable color blending there is no pproblem.
|
|
|
|
|
hi, im trying to extract the alpha image from png image. Instead of using iterations pixel by pixel, is there anyother fast or good way to do this ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I want to zoom in on a bitmap like Paint where the further you zoom in, the larger the individual pixels appear without any interpolation. This is how I thought about doing it. First, I would read the bitmap into an array. Then, I would custom draw each pixel with the appropriate color from the array as squares. The size of the squares would depend on the zoom level. This is probably the worst way of doing it, but I couldn't think of anything else. Maybe, somebody can suggest a better way?
|
|
|
|
|
|
I have tried using DrawImage, but it appears to scale with some sort of interpolation applied. I need to zoom in and see the individual pixels. In other words, the further that you zoom in, the larger a single pixel will be drawn.
|
|
|
|
|
Oh wait, I just saw that I could use NearestNeighbor for the inpterpolation mode. I believe this will solve my problem.
|
|
|
|
|
|
Hi
I am having 10 bmp files and i want to make 1 gif file out of that using GDI+. Each bmp file should be displayed for particular time period. I searched a lot but unable to find the answer. I want to do it in C++.
|
|
|
|