Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WPF - StartDragging populate DataObject with Image#2687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
remye06 wants to merge3 commits intocefsharp:master
base:master
Choose a base branch
Loading
fromremye06:master

Conversation

@remye06
Copy link

For instance, this image is necessary to give feedback (content displayed alongside cursor while dragging).

@AppVeyorBot
Copy link

Copy link
Member

@amaitlandamaitland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Please include a list of steps used when testing this feature.

bitmap.Freeze();
dataObject.SetImage(bitmap);
}
else
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This should be removed if you've added support for image.

IImagedragImage=dragData.Image;
intwidth,height;
byte[]pixels=dragImage.GetAsBitmap(1f,ColorType.Rgba8888,AlphaType.PreMultiplied,outwidth,outheight);
intstride=((width*32+31)&~31)/8;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks like your usingPixelFormats.Pbgra32 below, so it should be the correct format. Use

(PixelFormats.Pbgra32.BitsPerPixel / 8) * width to calculatestride

https://github.com/cefsharp/CefSharp/blob/cefsharp/71/CefSharp.Wpf/Rendering/InteropBitmapRenderHandler.cs#L31

{
IImagedragImage=dragData.Image;
intwidth,height;
byte[]pixels=dragImage.GetAsBitmap(1f,ColorType.Rgba8888,AlphaType.PreMultiplied,outwidth,outheight);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should the scale factor be dynamic based on the display? I would have though so.

@amaitlandamaitland added the wpfWPF Implementation labelMar 14, 2019
@amaitlandamaitland added this to the73.0.0 milestoneMar 14, 2019
@amaitlandamaitland changed the titleStore potential CEF's drag image into Drag events DataObject.WPF - StartDragging populate DataObject with ImageMar 20, 2019
@amaitland
Copy link
Member

@remye06 Any update on this?

@remye06
Copy link
Author

I've been unable to work on this lastly, due to my schedule, but should be in the upcoming days.

@amaitland
Copy link
Member

Great 👍 If you can include details on how you've tested this, on whatOS.

@AppVeyorBot
Copy link

@amaitland
Copy link
Member

If you'd like to see this merged then if you could provided an update in the next 2-3 weeks that would be great, thanks.

@remye06
Copy link
Author

Sure, I don't really need it anymore but still want to contribute, so that the effort I put into it so far is not lost and can help someone someday.

@amaitland
Copy link
Member

If you are able to provide aUrl that you used for testing and a list of steps that you used for testing with.

I can fix the code at some point once I know exactly what it does.

@amaitlandamaitland removed this from the75.0.0 milestoneJun 19, 2019
@remye06
Copy link
Author

I'm going to address your inquiries starting from tomorrow, as I got myself a little break. I feel very sorry for this delay.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@amaitlandamaitlandamaitland requested changes

Assignees

No one assigned

Labels

not-ready-for-mergewpfWPF Implementation

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@remye06@AppVeyorBot@amaitland

[8]ページ先頭

©2009-2025 Movatter.jp