OSX: Updating pixel data for image
Heya
I have a buffer of pixel data that I need to update/change once every 25ms or so. What's the best way of creating a UI element that I can update on the fly? It looks like my old way of creating an NSBitmapImageRef and getting a pointer to the data via getBitmapDataPlanes was broken in the transition from 10.5-10.6 [1]. A workaround is to create a new NSBitmapImageRef every time I want to update and render a frame, but that creates a ton of object churn. I figure there's got to be a better way to have byte-level access to a UI image of some kind. Thoughts?
Thanks
[1] https://groups.google.com/forum/?fromgroups#!topic/cocoa-dev/f05K9ZaafMw
Theoretically it may be doable assuming the tool used to modify B triggers proper events (not every tool does, unfortunately) AND your updates to layer A can be performed without disrupting user's work on B. What you'd need to do in this case is to implement an automation plugin based on Listener from the SDK samples that would monitor the events. Upon the event you'd need to determine the activate layer in your C++ code and if it's B then update A. The problematic part here would be whether you'd able to modify the non-current layer in a fashion that doesn't interrupt user's work on B (for example, you probably wouldn't want upon any change on B to change the current layer to A which would cause the focus to jump to A and then go back) and this would depend on the the type of changes you'd like to make there.
Anyway, this would be the general direction I'd take here.
HTH
ivar
Similar Messages
-
What this mean? "could not rasterize because the pixel data for this layer is not"
I've taken a color picture and made it black and white by doing the following: Layer>New Adjustment Layer>Hue/Saturation. I brought the saturation down to -100. The pencil is selected and my foreground color is black.
When I try to select the flowers in my picture to bring out their color (within the black and white image), I get a circle with a black line thru it and the error message "could not rasterize because the pixel data for this layer is not directly editable". The steps I followed are working for most of my team but some of us are getting this error message.
Any idea why and/or how to fix it?Ah, thank you! I didn't have the mask selected. So once I did select it, the color came thru like magic.
-
I just received an update to version 10.1.4. My previous version was 10.1.23. After the upgrade , I started to receive an error message insufficient data for image. This is the first time this error appeared so it has to be related to the new version. I unistalled this version and installed version 9, the problem went away. Is anyone else having this issue or is there a fix for this issue?
Thanks...At last I understand.
Sorry I was so slow.
By the time you see the "Insufficient data for an image" message it is too late.
Exit Acrobat without saving anything. If you save the PDF it is worthless; reget the original.
Note that when I tried this procedure just using the "Optimize Scanned PDF" tool instead of saving and working with an optimized PDF the procedure failed with the "Insufficient data for an image" message. As a result, though the following procedure seems to include some redundant steps they appear to be necessary in this context.
From here on I'll assume you have added "Recognize text in this file" and "Manage Embedded Index" to your Quick Tools.
Open the downloaded PDF
File > Save As > Optimized PDF
UNcheck "Optimize images only if there is a reduction in size"
OK
Save [at this point you may want to save it under another name]
(for my PDF for my machine this took 5 minutes)
(I got the following message:
Conversion warning: THe PDF document contained image masks that were not downsampled"
OK
Select the "Recognize text in this file" quick tool
On the Recognize Text panel
Mark "all pages"
"Primary OCR Language English (US);
PDF Output Style Searchable Image
Downsample To: 600 dpi"
OK
(for my PDF for my machine this took 15 minutes)
Select the "Manage embedded index" quick tool
On the Manage Embedded Index panel
Select "Embed Index"
"The PDF document needs to be saved before an index can be embedded. Do you want to save and continue?"
Yes
Status: Index has been embedded"
OK
Edit > Find > Hog [this edit test works] so this workaround did the job.
Thanks again for your help. -
How do I resolve the "insufficient data for image" error for Adobe reader 11.0.04?
Hi Johnkel1524,
Please refer : http://helpx.adobe.com/acrobat/kb/insufficient-data-image.html
Also try updating to 11.0.5 and check. -
I have just reinstalled Adobe Acrobat X1 and I can't save any PDF's that are emailed to me. I just get "This document could not be saves. There is a problem reading this document (21)" and then when I click OK i get "insufficient data for image" Help!
More information about this issue can be found here:
https://forums.adobe.com/thread/1672655
A "quick" fix that worked for me was to uninstall Adobe... then download the base install for Adobe Reader 11.0.
Then download each of the individual updates and run them sequentially.
I've installed back up to the last security update which is version 08 and have been able to do normal Save As operations.
You will have to disable automatic updates in order to stay at version 08 until Adobe resolves this issue in a later release.
http://www.adobe.com/support/downloads/product.jsp?product=10&platform=Windows
Adobe Reader 11.0 - Multilingual (MUI) installer AdbeRdr11000_mui_Std
Adobe Reader 11.0.01 update - Multilingual (MUI) installer AdbeRdrUpd11001_MUI.msp
Adobe Reader 11.0.02 update - All languages AdbeRdrSecUpd11002.msp
Adobe Reader 11.0.03 update - Multilingual (MUI) installer AdbeRdrUpd11003_MUI.msp
Adobe Reader 11.0.04 update - Multilingual (MUI) installer AdbeRdrUpd11004_MUI.msp
Adobe Reader 11.0.05 security update - All languages AdbeRdrSecUpd11005.msp
Adobe Reader 11.0.06 update - Multilingual (MUI) installer AdbeRdrUpd11006_MUI.msp
Adobe Reader 11.0.07 update - Multilingual (MUI) installer AdbeRdrUpd11007_MUI.msp
Adobe Reader 11.0.08 security update - All languages AdbeRdrSecUpd11008.msp -
Problem with "Insufficient data for image" and embedded JPEG 2000 Images
I frequently download pdf from the http://www.glorecords.blm.gov web site. They are reporting a problem with Reader Reader 10.1.4 and the pdf files they have.
"("Insufficient data for image" and embedded JPEG 2000 Images)"
I am experiencing the same "Insufficient data for image" error when opening their downloaded pdf and viewing in ACROBAT X 10.1.4.
Can someone address this please?
Win 7 sp1Read this:
http://blogs.adobe.com/dmcmahon/2012/08/21/acrobat-insufficient-data-for-an-image-error-af ter-updating-to-10-1-4-or-9-5-2/ -
I generate PDF documents in code (basically converts TIFF images to PDF, using FOP).
Few of the PDFs can not be viewed on Adobe Reader 9.1.0, and 7.0.9. But, these open fine on 8.0 version.
With 9.1.0 version I get error as "Insufficient Data for image"
With 7.0.9 the error is "A drawing error occured"
8.0 works fine and opens the PDF.
Is there any issue with 9.1.0 for opening PDFs, I got this version installed recently on my system.
Appreciate an early help/views on this issue.
Thanks,
UmakantTry this - from adobe support!
It worked for me and (as it seems) solved a one year long anoying issue.
1. Exit Acrobat.
2. Choose Start > Run, and type: %APPDATA%\Adobe\Acrobat\ into the Open text box. Click OK.
3. Right-click either the 6.0 or 7.0 folder, and choose Delete.
I deleted both folders.
Dont worry these two preferences folders will automatically be renewed by acrobat! -
PDF's I'm creating with Group 4 data report Insufficient Data for Image
I am maintaining a software application, which creates PDF files from JPEG and TIFF (with Group 4 compression) image files, which typically come from scanners. It has performed well for many years, but as of the release of Adobe Reader X, we are seeing "Insufficient Data for Image" on some images.
I've read reports of this message on these forums, and I've tried shrinking the image, adjusting zoom, and upgrading to Adobe Reader XI -- none of these have worked.
Our software creates these PDF files by wrapping the raw image data in an XObject, which looks like this:
24 0 obj
<< /Type /XObject
/Subtype /Image
/Name /Im1
/Filter /CCITTFaxDecode
/Width 1704
/Height 2200
/BitsPerComponent 1
/ColorSpace /DeviceGray
/DecodeParms <</K -1 /Columns 1704 /Rows 2200 >>
/Length 25 0 R >>
stream
<<BINARY DATA>>
endstream
endobj
25 0 obj
31512
endobj
Wherein, the <<BINARY DATA>> are 31,512 bytes of raw image data -- the same data which would appear in a Group 4 compressed TIFF file.
Indeed, when we do create a Group 4 TIFF file with the same binary data, it opens successfully in all common viewers.
Any assistance, such as the precise meaning of this error message, could be helpful.Just a note that the bug appears to relate to JPXDecode, so far as all previous reports seem to suggest (no inside information). JPXDecode supports multiple image resolutions in the same image, so messing with zoom sometimes helps. If you can post a complete file somewhere it might interest someone who could analyse it.
The message simply means that decompressing the filters does not yield enough bytes. This may either reflect that there really isn't enough data, or it could indicate any kind of data error (which causes the filter to silently return EOF). -
Reader XI still gives "insufficient data for image" error
Our fax machine creates .pdf files of the faxes and recently our back office has had trouble printing them. When I look at them they give an "insufficient data for image" error, but only on one page each. I've tried upgrading to reader XI but the problem persists. I've gotten around it by taking a screenshot and printing the one page that doesn't work so far, but I'd like to get this fixed. It only started happening today. I have a call in to our fax provider, but I was wondering if anyone here had any possible solutions.
Thanks,
Also due to the nature of the documents I'm unable to provide a sample.
Message was edited by: riderryukenIt is also happening to me (running v 11.0.2). I tried adjusting the various settings under the "View" menu and at best could only see part of what was missing. I resolved the issue by downloading and installing Foxit Reader. Bingo! now I can see the entire document.
-
Insufficient data for image (9-9.3) or a blank page (8.1)
Hi,
We recently started using a Xerox workcenter 5675 to scan document to my central server. About 3 days ago users started reporting an error message with a white page. I immediately checked the copier, nothing changed setting wise. It has been fully restarted, and other software like Sumatra PDF, and Apple's Preview applications open the PDFs just fine.
In any version of 9 the error "insufficient data for image" pops up. In 8.1 it just shows a blank page.
I would like to troubleshoot this issue, as we need to use the features of creating PDFs.
Is there a way I can view the code of the PDF and post it or even submit it to a site or software to identify any bad code, so that then I know it is the copier? Is there a way to reduce the strict rules reader follows?
Anyone have any ideas or clues as to what the issue might be, for the PDFs to be fine one day and not the next? I can easily provide a few PDFs made days apaprt for review.
Thanks!I do not really have any ideas. What software product you use to run the scan - Acrobat, or Xerox' own software?
If Acrobat, please try the Acrobat forum, and mention your OS and Acrobat version.
If Xerox, contact them. -
Insufficient Data for Image Adobe Reader XI
I have Adobe Reader XI and can clearly see my PDF's that I collate, however I am still getting the error message Insufficient Data for Image. When I email the PDF the recipient cannot print them as the error message reads Insufficient Data for Image. Any thoughts on how to resolve this please?
Hi NSC
Edit your image using the Edit Text and images option
Right click on the image and edit
It will open the image in the native application.
Simply save the image again without making any changes and see if that helps. -
Need BAPI to update posting date for parked documents in transaction FBV2?
Hi All,
I am retrieving records from table VBKPF and I have to update the posting date for parked documents in transaction FBV2.
I am doing it with BDC , working fine in foreground, but it is not workung fine in back ground.I want to do this with bapi.
Can any one suggest me corrct BAPI?
TYPES : BEGIN OF It_vbkpf,
bukrs LIKE vbkpf-bukrs, "Company Code
belnr LIKE vbkpf-belnr, "document number
gjahr LIKE vbkpf-gjahr , "Fiscal year
budat LIKE vbkpf-budat, "Posting date
bldat LIKE vbkpf-bldat, "Document date
blart LIKE vbkpf-blart, "Document type
xblnr LIKE vbkpf-xblnr, "Reference
tcode LIKE vbkpf-tcode, "Transaction Code
bktxt LIKE vbkpf-bktxt, "Document header text
usnam LIKE vbkpf-usnam, "User Name
xwffr LIKE vbkpf-xwffr, "Release necessary
xprfg LIKE vbkpf-xprfg, "Document complete
xfrge LIKE vbkpf-xfrge, "Release takes place
END OF it_vbkpf.
Thanks,
Suresh.Hi ,
Thanks for your response.
PRELIMINARY_POSTING_UPDATE seems working good,But my requirement here , to update the posting date with last working day . how can i do this?
thanks,
Suresh. -
How to update additional data for a premise in ISU?
Hi Experts,
Does any1 have any ideas about how to update additional data (Such as number of premises, flat area) for a premise? I mean not use ISU_DB_EWA_VBS_UPDATE directly. I tried to use ISU_S_PREMISE_CHANGE to update the data, but I do not konw how to use the parameters, can any1 help?
Thx in advance, points will be rewarded.
Vincent.Hi Vincent,
Here is an example coded by me. Hope this is useful to you. If so, please reward points.
l_premise = '0000004454'.
CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
EXPORTING
x_vstelle = l_premise
x_wmode = '1'
X_TEILOBJ =
IMPORTING
Y_OBJ =
y_auto = x_auto
EXCEPTIONS
not_found = 1
foreign_lock = 2
general_fault = 3
not_authorized = 4
invalid_wmode = 5
OTHERS = 6.
IF sy-subrc <> 0.
ENDIF.
x_auto-evbsd-haus_num2 = '99999'.
CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
EXPORTING
x_vstelle = l_premise
x_upd_online = 'X'
x_no_dialog = 'X'
x_auto = x_auto
X_OBJ =
X_NO_OTHER =
IMPORTING
Y_DB_UPDATE =
Y_EXIT_TYPE =
Y_NEW_EVBS =
EXCEPTIONS
not_found = 1
foreign_lock = 2
input_error = 3
general_fault = 4
not_authorized = 5
OTHERS = 6.
IF sy-subrc <> 0.
ELSE.
COMMIT WORK.
ENDIF.
Thanks,
Pranjal. -
How to update additional data for Premise in ISU?
Hi Experts,
Does any1 have any ideas about how to update additional data (Such as number of premises, flat area) for a premise? I mean not use ISU_DB_EWA_VBS_UPDATE directly. I tried to use ISU_S_PREMISE_CHANGE to update the data, but I do not konw how to use the parameters, can any1 help?
Thx in advance, points will be rewarded.
Vincent.Hi Vincent,
Here is an example coded by me. Hope this is useful to you. If so, please reward points.
l_premise = '0000004454'.
CALL FUNCTION 'ISU_S_PREMISE_PROVIDE'
EXPORTING
x_vstelle = l_premise
x_wmode = '1'
X_TEILOBJ =
IMPORTING
Y_OBJ =
y_auto = x_auto
EXCEPTIONS
not_found = 1
foreign_lock = 2
general_fault = 3
not_authorized = 4
invalid_wmode = 5
OTHERS = 6.
IF sy-subrc <> 0.
ENDIF.
x_auto-evbsd-haus_num2 = '99999'.
CALL FUNCTION 'ISU_S_PREMISE_CHANGE'
EXPORTING
x_vstelle = l_premise
x_upd_online = 'X'
x_no_dialog = 'X'
x_auto = x_auto
X_OBJ =
X_NO_OTHER =
IMPORTING
Y_DB_UPDATE =
Y_EXIT_TYPE =
Y_NEW_EVBS =
EXCEPTIONS
not_found = 1
foreign_lock = 2
input_error = 3
general_fault = 4
not_authorized = 5
OTHERS = 6.
IF sy-subrc <> 0.
ELSE.
COMMIT WORK.
ENDIF.
Thanks,
Pranjal. -
Updating Scheduling data for Purchase Order
Hi,
I need a function module which can update the scheduling data for purchase order in EKET table. Normally we create Purchase Order as a reference from purchase requisition through BAPI_PO_CREATE1. That time it takes care of all the scenarios. But as per the requirement I want to create a PO which is created from more than one Purchase Requistions so I can't use the said BAPI. But still I am using this BAPI and after creation is completed I am updating the Requistions. The same scenario is taken care in ME59N, but I can't copy that code because of some requirements. So could any one please give me the idea to replicate the same functionality with any function module or other ways.
Thanks
Somnath paultry to pass all u sheduling related fields to POSCHEDULE and make sure u have enabled POSCHEDULEX along with sheduling related fields .....also (if no changes are there leave it with space )...
this will definetly update not only eket table ....it will update every table regarding to purchase order,ekpo,ekko,eket ...etc
Example of population of BAPI interface in the Function
Parameter: POHEADER
COMP_CODE = 1000
DOC_TYPE = NB
ITEM_INTVL = 00001
VENDOR = 0000001000
PMNTTRMS = 0001
PURCH_ORG = 1000
PUR_GROUP = 001
CURRENCY = EUR
Parameter: POHEADERX
COMP_CODE = X
DOC_TYPE = X
ITEM_INTVL = X
VENDOR = X
PMNTTRMS = X
PURCH_ORG = X
PUR_GROUP = X
Parameter: POITEM
PO_ITEM = 00001
MATERIAL = 100-100
PLANT = 1000
STGE_LOC = 0001
QUANTITY = 15.000
TAX_CODE = V0
ITEM_CAT = 0
ACCTASSCAT = K
Parameter: POITEMX
PO_ITEM = 00001
MATERIAL = X
PLANT = X
STGE_LOC = X
QUANTITY = X
TAX_CODE = X
ITEM_CAT = X
ACCTASSCAT = X
Parameter: POSCHEDULE
PO_ITEM = 00001
SCHED_LINE = 0001
DELIVERY_DATE = 02.12.2002
QUANTITY = 6.000
PO_ITEM = 00001
SCHED_LINE = 0002
DELIVERY_DATE = 03.12.2002
QUANTITY = 5.000
PO_ITEM = 00001
SCHED_LINE = 0003
DELIVERY_DATE = 04.12.2002
QUANTITY = 4.000
Parameter: POSCHEDULEX
PO_ITEM = 00001
SCHED_LINE = 0001
PO_ITEMX = X
SCHED_LINEX = X
DELIVERY_DATE = X
QUANTITY = X
PO_ITEM = 00001
SCHED_LINE = 0002
Parameter: POACCOUNT
PO_ITEM = 00001
SERIAL_NO = 01
QUANTITY = 15.000
GL_ACCOUNT = 0000400000
COSTCENTER = 0000001000
CO_AREA = 1000
Parameter: POACCOUNTX
PO_ITEM = 00001
SERIAL_NO = 01
QUANTITY = X
GL_ACCOUNT = X
COSTCENTER = X
CO_AREA = X
Parameter: POCOND
ITM_NUMBER = 000001
COND_ST_NO = 001
COND_TYPE = PB00
COND_VALUE = 79.900000000
CURRENCY = EUR
CURRENCY_ISO = EUR
COND_UNIT = KG
COND_P_UNT = 1
CHANGE_ID = U
Parameter: POCONDX
ITM_NUMBER = 000001
COND_ST_NO = 000
ITM_NUMBERX = X
COND_TYPE = X
COND_VALUE = X
CURRENCY = X
CHANGE_ID = X
Parameter: POPARTNER
PARTNERDESC = OA
LANGU = EN
BUSPARTNO = 0000001100
PARTNERDESC = GS
LANGU = EN
BUSPARTNO = 0000001200
PARTNERDESC = PI
LANGU = EN
BUSPARTNO = 0000001000
reward points if helpful....
Maybe you are looking for
-
Applet is not working properly on windows 7 with java update 23
I am using applet in web application to serve as Image Viewer. Problem Description : 1.Client machine configuration: Windows 7, java update 23 , IE8 2.When my web application is not secure (i.e. accessible via HTTP), applet is able to download image
-
Dears, I have a concurrent with bursting. Template type is Excel. Bursting Control File: <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting"> <xapi:request select="/XXRCVSHIPMENTSBURST/LIST_G_PO_NO"> <xapi:delivery> <xapi:e
-
Error when trying to create a Composite Application Services project
Hi Experts, I am facing a problem while trying to create a project using NWDS 7.0 SP 13 New Development Component Project-> Composite Application Services then pressing finish, it throws an error as follows "Generation can not completed due to one o
-
Song order changed to alphabetical
Hello. Something odd has happened. I've been using iTunes for many years, I always keep the song info nice and tidy, I always have the correct track number so they play in the right order. Today I was doing some re labeling of one album and suddenly
-
Old school "Dial Up" noise is troublesome. I don't have modem. I don't need to be running any applications for this to happen but it seems to happen only when connected to wifi. I have had this happen on the old os X and the new Yosemite 10.10.2. Hap