I have two questions.
First: I haven't got any definite documentation on how to use the GDCM library in Windows. Is it at all possible to use GDCM library in Visual Studio in windows? If so, could you please provide me any instruction how to install the library in Visual studio? I want to change or add something to the way the GDCM command "gdcmimg" functions.
Second: I have some multiframe dicom images where I need to modify the pixels and keep all the tags(private or non-private) intact. I have tried with Matlab, GDCM and Dcmtk. But in each case there is some problem. Matlab can't change multiframe images as it runs out of memory. GDCM can't keep the tags intact(I use the "gdcmimg" command) and I don't know yet how to change this functionality, dcmtk(I use the "dcmodify" command for that purpose) can only change the single frame dicom images and mysteriously it fails to do so in case of multi-frame dicom images when the images are provided by some vendors. What I mean is that, I tried with the multi-frame dicom images made by myself using matlab and I could change their pixel data in using "dcmodify", but when I try to do so with vendor provided multi-frame dicom image it fails to change the pixel data. So, now I want to try with VTK. Could you please say me whether or not VTK can change the pixel data of a Multi-frame dicom image while keeping all the tags, private or non-private, intact?
Thanks
You can work with GDCM on windows in Visual Studio.
Download the GDCM source.
Download CMake
User CMake to generate a visual studio solution for GDCM
Build the Visual Studio Solution
Use the built library in your own projects.
GDCM has very little documentation.
In regards to the private tags. The general practice is that when you modify/derive an image you do not keep the private tags. The only private tags should be the ones you add.
When all else fails, read the documentation:Configuring and Building With VS .NET 2003. Of course this works with any newer Visual Studio, thanks to the use of CMake.
Related
I've created a few vector assets using Vectornator. If I import those assets into Android Studio, I receive a parsing error - as shown in the attached picture.
Why do I get this parsing error and how can I create vector assets that do not create this error?
I use FIGMA/SKETCH to create SVG's.
It was a bug, so please check your android version and update to newer one.
also check out these possible error,
Internal error parsing svg file in android studio
I've solved exporting the Vectornator project to PDF and then converting the PDF to SVG (for example with this online tool)
I also had this problem using Android App and Vectornator (Being too cheap to pay for adobe illustrator and all the cloud subscription stuff that goes with it). Haven't fully solved the problem yet, but the problem lies with Vectornator's JSON code with opacity. If you remove all opacity it will work better. Another thing is that it really appears to save a bitmap and wrap it in SVG code instead of being a clean SVG code, and a lot of online resources do that. If you open the code of the image you will see in the javascript that the code isn't quite right, which is probably why it is free. Moreover, Android has not gone out of its way to make itself compatible with a program like Vectornator, but they do go out of their way to "play nice" with adobe programming. I have come up with these solutions:
Pay for and download a program like Affinity Designer for $9.99 on Ipad (1 time fee) which has a cleaner formatting capability and import it in there then turn to SVG (and fix the issues in the design as they pop up.
Use Vectornator only for art, and not for programming, and then buckle down and use Adobe Illustrator because let's face it, they have a lot of money behind them to make sure that their products "play nice with others" (Meaning they actually pay Android to provide programming to support their code).
Import a ton of code from Maven Libraries for SVG support and essentially build an in program svg to png converter that replicates what Android App does when it imports a vector, but is under your control. If you do this you will upload all your svg files directly to this mini program instead of using the Android App's Import Image and Vector directory under File New.
I was trying everything but using Adobe Illustrator, but it is a huge pain and a lot of headache. Adobe Illustrator still has minor issues, but not the huge glaring problems of Vectornator.
I am using Android Studio (v 3.4.1) to create Adaptive Launcher Icons. I am confused about the PNG files it is generating.
I used the Asset Studio to create Launcher Icons (Adaptive and Legacy). The process was simple enough. But I question if some of the output files are necessary.
The output consists of the following:
\release\res\mipmap-anydpi-v26
ic_launcher.xml
ic_launcher_round.xml
\release\res\mipmap-nndpi (for each pixel density)
ic_launcher.png
ic_launcher_foreground.png
ic_launcher_round.png
\release\res\values\ic_launcher_background.xml
I think each \mipmap-nndpi folder only needs the [foreground & round].png files. When I created the icons manually, I did not create ic_launcher.png and didn't see a difference.
Is ic_launcher.png required for minimum Target SDK 28+?
Take a look at https://github.com/Viperusgit/AdaptiveIcons
ic_launcher_forground is the name of the forgound image
ic_launcher is the icon for older versions of android
ic_launcher_round is the icon for older pixels
I installed Plone 4.2.1 using the Windows Installer on my DELL XPS15 with Windows 7 64bit. Then made an update to 4.2.4, it's running well so far everything. I've created my first page, change the logo.
But, if I include a PDF document as a file, the contents of that file cannot be found when searching. According to the description it should work but the full-text search in PDF's. Am I missing something there yet, or you have to set somewhere to activate or what?
You need to install the XPDF package to convert PDF to text for Plone to be able to index the contents.
Download it from http://www.foolabs.com/xpdf/download.html, where you'll find a pre-compiled Windows binary.
what is this Error, and how to resolve it?
I am using Visual studio 2005 for Smart device MFC developement,
Is upgrading to 2008 can solve my problem.
Error 85 error RC2176 : old DIB in res\icon3.ico; pass it through SDKPAINT
Thanks
this might help you:
http://www.axialis.com/tutorials/vistaicons.html
It looks like vista icons now use PNG headers. The error is slightly false though as its not an old DIB its just a header it doesn't recognize, PNG.
How was that icon created? Long ago Visual C++ 6.0 had its own little way of creating icon .ico files. Probably not using PNG so this might be the way to go is to find some program to emulate that and create an icon using the old DIB way. Or upgrading to 2008 :)
Actually there is another way not mentioned here in the other answers.
If you would install and integrate a more recent (same or later release date than VS 2008) SDK with VS 2005, that also resolves it. You can also go to C:\Program Files\Microsoft Visual Studio 8\VC\bin (or your equivalent of the path) and replace the files rcdll.dll and rc.exe with the ones from a more recent VS, WDK or SDK.
Side-note: the version of rcdll.dll and rc.exe must match, that is you need to copy both at once from your source (be it VS, WDK or SDK). For me any version starting with 6.0 or 6.1 worked. That's any version starting from the compilers that accompanied the Vista SDKs and VS versions or later.
There are actually 2 situations I've encountered that lead to this error RC2176.
As you probably know, a Windows .ICO file can contain multiple images for different sizes and color depth. VS2005 throws this error in at least two situations (unrelated to DIB)
.PNG images in the icon (as described in Codejoy's answer)
256x256 or larger images in the icon
By using GIMP to shrink the largest image size to 128x128, and avoiding .PNG, the problem is resolved with VS2005. Or, upgrade to a newer VS ;)
I had this problem in VS2012 for which I googled but didn't find anything else but this link to a MSDN site which talked about opening it up with sdk-paint , so in my project I doubleclicked the icon that was responsible for the error and deleted the PNG format and voila program started.
Greetz
Richard
The compressed/packed 256x256 was the problem for me. Once I unchecked the option to save as compressed (for Vista) in my icon editor app, the problem went away.
There is another situation I encountered which triggered the error, that is a corrupted PNG file. I've used the sed command to globally replace some strings in the project folder, and it just replaced the (looks liked) windows line ending to UNIX one, which caused my image files corrupted.
So, maybe there are some bugs in the PNG parser of MFC library, which cannot handle malformed input files.
Best resolution I have come across is from Axialis where they offer guidance of saving the ICO file in uncompressed PNG format.
https://www.axialis.com/docs/iw/How_to_use_a_Windows_Vista_Compressed_Icon_in_a_Software_Project.htm
I finally have my C++ Builder 2010 installation the way I want it, with all my components upgraded and installed. (touch wood)
I have been working with C++builder since version 1 and I know from countless previous traumatic experiences that this state of affairs could change in an instant. I would like to backup the installation and component set.
Is there a way to do this? A tool perhaps? A menu command that I have maybe missed all these years? I don't want to have to reinstall all the components from the bpl source again.
I make nightly backup images of my entire drive, I would like to do this for c++builder only if possible.
If it's a matter of simply copying files, which files would I need to copy? Are there entries in the registry that would need to be restored?
Thanks in advance for any thoughts and suggestions
The HKCU\Software\CodeGear\BDS\7.0\ registry section contains the "known packages" subtree that contains which components you have installed. reg export/import should save you some trouble.
You'll also want to backup/restore the actual files referenced there as well.
It has been a while since I used C++ Builder, but I will make two suggestions...
1) run regedit and looks for "builder". You will probably find a hive like hk_local_machine/software/codegear or such. Export that and you can import it later
2) have a look at GExperts - is they don't have the exact solution, they still have some pretty useful (and free) tools