To Plouf: i will take a look to videostream capture code to avoid crash when the image format isn't RGB. It's probably that it crash for this reason, but on some computers it don't crash when you use a non RGB format... It could be your camera drivers that are not correctly coded (i know that some cameras have poor drivers).
To Killswitch: It's very easy, i discovered a usefull command to add image patterns to your window, without use a callback procedure:
Code: Select all
patternbrush = CreatePatternBrush_(UseImage(1))
SetClassLong_(hwnd,#GCL_HBRBACKGROUND,patternbrush)
and delete the brush object after use your application:
and to make it without a window style use the flat of borderless and use this:
Code: Select all
Rgn = CreateRoundRectRgn_(0, 0, 200, 280, 30, 30)
SetWindowRgn_(hWnd, Rgn, #True)
HideWindow(0, 0)
To Sec: If i have some time to install Linux again and install PB for linux, i can try to port this program... but i'm not sure...