Bug 174714 - GC.drawImage - doesn't work on Printer for PNG24
Summary: GC.drawImage - doesn't work on Printer for PNG24
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-19 18:40 EST by Slava Kovalenko CLA
Modified: 2021-11-12 11:38 EST (History)
3 users (show)

See Also:


Attachments
PNG 24 image (5.51 KB, image/png)
2007-02-19 18:55 EST, Slava Kovalenko CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Slava Kovalenko CLA 2007-02-19 18:40:49 EST
Build ID: M20060921-0945

Steps To Reproduce:
1.Image png24Image = // load any PNG24 image using ImageLoader
PrintDialog prtDlg = new PrintDialog(window.getShell());
		PrinterData printData = prtDlg.open();
		if (printData != null) {
			Printer printer = new Printer(printData);
			printer.startJob("PNG24 drawImage test");
			printer.startPage();
			GC gc = new GC(printer);
			gc.drawImage(png24Image, 0, 0);
			gc.dispose();
			printer.endPage();
			printer.endJob();
		}


More information:
Some garbage is painted when Device is printer and source image has format png24.
This is only applies when Device is Printer and Image is PNG24 (works perfectly for PNG32, and when Device is Display any image paints correctly).
Comment 1 Slava Kovalenko CLA 2007-02-19 18:55:53 EST
Created attachment 59335 [details]
PNG 24 image

png file size is 5,644 bytes (If opened and saved in paint would be converted to png32 and then would paint correctly).
Comment 2 Carolyn MacLeod CLA 2007-03-13 12:43:13 EDT
Just curious - does the image print ok when it has alpha data, as mentioned in bug 174027 ?
Comment 3 Carolyn MacLeod CLA 2007-03-13 14:12:36 EDT
Hi again. What version of cairo are you using?
rpm -q cairo
Comment 4 Slava Kovalenko CLA 2007-03-13 16:24:37 EDT
This behavior was observed on Windows platform (Microsoft Windows XP [Version 5.1.2600])
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:11:30 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.