mirror of
https://gitee.com/openharmony/graphic_graphic_2d
synced 2024-12-18 04:28:57 +00:00
!14026 修复拖拽过程中图片重影问题
Merge pull request !14026 from qugr/2024_08_19_drag_drop
This commit is contained in:
commit
d5f5ccf111
@ -23,6 +23,12 @@ std::unique_ptr<PixelMap> PixelMap::Create(const InitializationOptions &opts)
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::unique_ptr<PixelMap> PixelMap::Create(
|
||||
const uint32_t* colors, uint32_t colorLength, const InitializationOptions& opts)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int32_t PixelMap::GetRowBytes()
|
||||
{
|
||||
return 0;
|
||||
|
@ -79,7 +79,9 @@ std::shared_ptr<Media::PixelMap> RSDividedUICapture::CreatePixelMapByNode(std::s
|
||||
Media::InitializationOptions opts;
|
||||
opts.size.width = ceil(pixmapWidth * scaleX_);
|
||||
opts.size.height = ceil(pixmapHeight * scaleY_);
|
||||
return Media::PixelMap::Create(opts);
|
||||
uint32_t length = opts.size.width * opts.size.height;
|
||||
auto data = std::make_unique<uint32_t[]>(length);
|
||||
return Media::PixelMap::Create(data.release(), length, opts);
|
||||
}
|
||||
|
||||
std::shared_ptr<Drawing::Surface> RSDividedUICapture::CreateSurface(
|
||||
|
Loading…
Reference in New Issue
Block a user