Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Keep raster data in printer driver



Hi,
 
I has a strange question. Maybe it's not strange for you.
 
Due to the logic of my printer, I must read out the whole raster data to know the rectangle non-blank image region first. After that, above information will be sent to printer by PCL commands(like move cursor to the start point of the rectangle non-blank image). And next step is sending the rectangle non-blank image pixels to printer with Esc*b#W line by line.
 
My question is why I can't keep the raster data in my printer driver?
Here I had tried two methods to solve it. But both of them don't work.
 
Method 1:
Use malloc( ) to allocate a big chunk(about 22M) of buffer to keep data.
 
Method 2:
Try to create a file to keep data like below shown. But I can't open it. In other directory, like /usr/lib,using the open function to test is okay. It looks like permission problem. But I don't know how to solve in printer driver.       
 
Tempfd =open("ExpRaster.dump", O_RDWR | O_CREAT, S_IRWXU | S_IRWXG | S_IRWXO);
 
Anyone can help me?
 
Regards,
--Henry
 

___________________________________________________ 郔陔唳 Yahoo!✽藻撈�r籵�� 7.0 betaㄛ轎愐鋒繚����¦斕湖ㄐ http://messenger.yahoo.com.tw/beta.html

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/printing/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.