Hello everyone,

I just made a test application for reading pixels out of a CL_PixelBuffer.
But it doesn't return what i expect...
Tried everything out now and read all topics and the documentation about the PixBuf.
What am I doing wrong?

int CProgram::start( const std::vector<CL_String> &args )
	CL_PixelBuffer buffer( "image.png" );
	CL_PixelBuffer rgba = buffer.to_format(cl_rgba8);

	for( int x = 0; x < rgba.get_width(); x++ )
		for( int y = 0; y < rgba.get_height(); y++ )
			rgba.lock( cl_access_read_only );
			CL_Colorf color = rgba.get_pixel( x, y );

			if( color == CL_Colorf( .0f, .0f, .0f ) )
				MessageBox( NULL, L"Schwarzen Pixel gefunden!", L"Pixel gefunden!", MB_OK );

	return( 0 );
The program should be able to tell the user when it has found a black pixel.