rendering

How do I enable an element to paint outside its container?

北慕城南 提交于 2019-12-10 17:21:18
问题 I'm trying to get elements to render outside the bounds of their parent panel, in this case I'm using a stack panel. <StackPanel ClipToBounds="False" Width="200" Orientation="Horizontal" Height="50" Background="{DynamicResource TierBackground}"> <Rectangle ClipToBounds="False" VerticalAlignment="Bottom" Width="25" Height="75" Fill="#FF4D6072" /> </StackPanel> Setting ClipToBounds doesn't seem to do anything, I first tried it on the Rectangle and then on the parent Panel though neither seemed

Rendering multiple .rdlc reports into a single PDF using PDFSharp

社会主义新天地 提交于 2019-12-10 16:49:57
问题 I am running multiple reports and combining them into a single PDF file. For each report, I pass the datasource, parameters, and report path to the following. The result is a PDF file with the correct number of pages, but all pages are blank. What am I missing? LocalReport report = null; PdfDocument pdfDoc = new PdfDocument(); private void ProcessReport( ReportDataSource reportDS, ReportParameter[] reportParms, string reportPath) { string format = "PDF"; string deviceInfo = null; string

Problem with patch transparency (FaceAlpha)

徘徊边缘 提交于 2019-12-10 15:46:07
问题 I encountered some strange problem with patch ploting in Matlab 2010b with windows xp. When I try to plot following patch, I get a patch which is not all-filled, but has some blank parts. This can be solve if I set the renderer to 'painters' (see below), but then I can't change the transparency of the patch. Has anyone encountered similar problem before? any workaround? x = [734608.791666667;734608.843750000;734609;734609.041666667;734609.086805556;734609.125000000;734609.250000000;734609

Reading lossy file format (PRC), resulting in precision problems

五迷三道 提交于 2019-12-10 15:42:56
问题 I got into making a viewer for various 3D file formats, and those formats that I had before didn't pose a problem, until I came to the PRC file (which is one of the supported 3D formats that can be embedded in PDFs). I can extract all the data from the PDF and display those models that were encoded in non-lossy ways, however when I tried to decode what they call "Highly Compressed Tesselations" I run into a problem that I think is a precision problem, but I don't quite know how to fix it or

Sitecore 8: Automatically fill a placeholder by a default rendering

拜拜、爱过 提交于 2019-12-10 15:01:16
问题 I was playing around with dynamic placeholders and was struck by a prefilling concept.Is there a way to select a default rendering for one of my placeholders which would avoid the "select rendering" dialog in experience editor ?? Scenario: I have a rendeing called "PageHead" which has three renderings. One of them is a placeholder "PageTeaserPh" which currently allows two renderings: one is "PageTeaser" and second "PageTeaserWithImage". I want the placeholder "PageTeaserPh" to always have the

Large images don't render in Chrome?

江枫思渺然 提交于 2019-12-10 14:45:48
问题 Very large images will not render in Google Chrome (although the scrollbars will still behave as if the image is present). The same images will often render just fine in other browsers. Here are two sample images. If you're using Google Chrome, you won't see the long red bar: Short Blue http://i.stack.imgur.com/ApGfg.png Long Red http://i.stack.imgur.com/J2eRf.png As you can see, the browser thinks the longer image is there, but it simply doesn't render. The image format doesn't seem to

Are off-stage DisplayObjects in Flash still slowing down my game?

泪湿孤枕 提交于 2019-12-10 14:22:13
问题 How does Flash deal with elements that are off-stage? Obviously Flash doesn't actually render them (because they don't appear anywhere on-screen), but is the process of rendering them still existent, slowing down my game as much as it would if the elements were on-screen? Or does Flash intelligently ignore elements who don't fall into a renderable area? Should I manually manage removing objects off the DisplayList and adding them back on as the exit and enter the stage, or is this going to be

Chrome does not render <form> tag, FF does

那年仲夏 提交于 2019-12-10 14:08:28
问题 I have a very annoying issue. My website has a form, which works in Firefox but not in IE or Chrome. It's made with Gravity Forms for WordPress, but that has probably nothing to do with the issue since the same issue occured with another form plugin. It seems that the error is in my site. It's fairly simple: Chrome and IE do not render the tag. It's just completely missing from the DOM. Firefox is fine, form works and all. I checked in Chrome's debugger, it's just not there! What could

NodeJS, how to render static HTML with Express 4?

五迷三道 提交于 2019-12-10 13:53:33
问题 I need to render HTML files in express 4, I write something like this but not works good. app.route('/form1').get(function(req,res){ res.sendfile('./public/danial/forms/form1.html'); }); This code can send the HTML file ,but it exactly send the HTML file and don't send css or js files that HTML file need them ,this is the logs : GET /form1 304 2.743 ms - - GET /css/bootstrap.css 404 2.284 ms - - GET /css/bootstrap-theme.css 404 2.193 ms - - GET /css/bootstrap-switch.css 404 2.226 ms - - //

Adjacent svg:polygon edges do not meet

删除回忆录丶 提交于 2019-12-10 12:34:08
问题 I am drawing a bar chart using polygons next to each other like this: If you look closely, there are white spaces between each polygon (zoomed): I am trying to prevent this from happening. I found out SVG shape-rendering attribute and set it to geometricPrecision . This solved the problem but gave me very crisp edges: I do not want that either. I tried other possible values for shape-rendering but none worked well. (I tried these on WebKit.) I am looking for a solution. For those interested,