Code:
System::Drawing::Graphics^ grp = System::Drawing::Graphics::FromImage(bmpDest);
System::Drawing::Bitmap^ bmp = gcnew
System::Drawing::Bitmap(Width, Height, grp);
System::Drawing::Imaging::BitmapData^ bmpData = bmp->LockBits(
System::Drawing::Rectangle(0, 0, Width, Height),
System::Drawing::Imaging::ImageLockMode::ReadWrite,
System::Drawing::Imaging::PixelFormat::Format24bppRgb);
System::Diagnostics::Debug::Assert(bmpData->Stride == ScanWidth);
memcpy((char*)(void*)bmpData->Scan0, Data, bmpData->Stride*bmpData->Height);
bmp->UnlockBits(bmpData);
I am trying to convert this code in iphone. But I am having one confusion. Is this code creating entire image or is just replacing an array of pixels...???