2017-04-05 6 views
-1

iPadでVNCクライアントプロジェクトを作成したいのですが、NPDeskTopデモを使用しているときに画像が変わったときにiPadの画面に黒い線が表示されることがあります。私はそれを修正する方法を知りたい。ここで はデモ住所である:enter link description hereVNCデモに黒い線がある

+0

私は使用しているVNCサーバーを忘れています:TightVNC Server –

+0

あなたがまだ試したことでいくつかのコードを教えてください。この質問はSOの話題です。 – Andreas

答えて

0
int bytesPerPixel = (pixelFormat.bitsPerPixel + 7) >> 3; 
CGContextTranslateCTM(ctx, 0, _size.height); 
CGContextScaleCTM(ctx, 1.0, -1.0); 
// FIXME: rect origin can be negative? 
uint32_t *start = (uint32_t *)_buffer.bytes; 
int bytesPerRow = _size.width * bytesPerPixel; 
CGColorSpaceRef cs = CGColorSpaceCreateDeviceRGB(); 
CGContextRef bmpctx = CGBitmapContextCreate(start, _size.width, _size.height,8 , bytesPerRow, cs, kCGImageAlphaNoneSkipFirst); 
CGImageRef image = CGBitmapContextCreateImage(bmpctx); 
CGContextDrawImage(ctx, rect, image); 
CGImageRelease(image); 
CGColorSpaceRelease(cs); 
CGContextRelease(bmpctx); 

ここに私の作成ビューfuncがあります。

+0

しかし、私は別の楽しみを変える、それはまだ動作しません。 –

関連する問題