Cannot copy/paste an image selection from Paint.com into a RichE - RealWorld forums

Log-in or register.

Cannot copy/paste an image selection from Paint.com into a RichE

Anonymous
on August 3rd 2009

Cannot copy/paste an image selection from Paint.com into a RichEdit control.

Paste seems to work fine in OpenOffice Writer, however multiple other apps (e.g. Thunderbird new email) either don't paste anything at all or do paste the image but 99% of it is completely blank (e.g. Wordpad)

Apart from that, v.cool tool :-)

Vlasta
on August 3rd 2009

Hm, it copies the image with transparency and if the application cannot handle it or does handle it in a different way, the result is not satisfactory. There is no real standard for images with transparency in Windows clipboard. Hopefully the situation improves.

Anonymous
on August 3rd 2009

Isn't there any way you could copy 2 objects to the clipboard - one with transparency and one without? Coz Paint.net works fine so it must be possible... ;-)

Vlasta
on August 3rd 2009

It actually puts the data to the clipboard with and without transparency and that is why it works in some applications. Paint.COM is using CF_BITMAP, which is standard, and also CF_DIBV5, which supports transparency and is unofficially recommended by Microsoft guys for images with transparency, but it seems like there is some noise...

I look into it, but I cannot guarantee it will work. Maybe Thunderbird would have to be modified to accept the transparency info.

Anonymous
on August 4th 2009

If you could look into it that would be great, thanks.

Anonymous
on August 4th 2009

It seems that Paint.com itself cannot paste properly either. In the Options->Raster Image I unchecked the Use Layered Mode By Default checkbox. Then I pressed PrintScreen, then went to File->New then Image From Clipboard, it says:
"No user interface configuration is available for the current document type. Learn about layouts at..."

BTW also does not work to paste in Outlook new email :-(
In fact the only place I have seen it working half-decent is OpenOffice Writer :-(

Vlasta
on August 4th 2009

If you uncheck "Use Layered Mode By Default", it will create documents without layer support and there is no layout (configuration of menu, window arrangement, etc.) available for them in Paint.COM by default. I understand that it might be confusing, but many components of Paint.COM are shared among multiple RW applications and not every combination of settings makes sense. You should leave it checked or create a layout for non-layered images (and that requires intimate knowledge about how the application works, so I'd recommend to simply leave it checked).

I have no problems pasting into many applications like Windows Paint, Ms Word 2003, or Photoshop. It does not seem to work correctly with RichEdit based apps like WordPad, that's true.

Anonymous
on August 4th 2009

Ooh it works in MSPaint - I'm gonna make an AutoHotkey script to paste the current clipboard into MSPaint and then do a copy operation. Really not pretty but it should work.

Thanks for the info.

Anonymous
on August 4th 2009

FYI here it is:

ifwinexist untitled - Paint
{
	msgbox Please close MSPaint and try again.
}
else
{
	run mspaint
	winwait untitled - Paint
	winmove -3000,-3000
	winactivate

	send ^v
	sleep 200
	send ^c

	winclose
	sleep 200
	send n
}
Vlasta
on August 4th 2009

OK, thanks; it could be useful for users in similar situation.

Page views: 2732       Posts: 10      
Select background
What about ICL files?
Vista & Win 7 icons